-
Notifications
You must be signed in to change notification settings - Fork 29
UI.View.backgroundImage
kerrishotts edited this page Apr 4, 2013
·
2 revisions
(part of UI.View)
Type: image
Default: null
The background image of the view. If changed, it sends a backgroundImageDidChange
notification.
Note: changing the internal properties should be avoided, as it does not utilize the setter method for the property. Therefore notifications will fail to fire and properties that rely on it will fail to be updated. When changing this property, you should always assign a new copy of the object that contains the desired modifications.
var aView = new UI.View();
aView.backgroundImage = UI.makeImage ( "./images/somePattern.png", UI.makeSize(32,32),
{ repeat: "repeat" } );
0.3 Introduced; Docs Valid.