Skip to content
kerrishotts edited this page Apr 4, 2013 · 1 revision

(part of UI.View)

Type: border

Default: null

The border for the view. When changed it sends a borderDidChange 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.

Note: the border does not affect the physical boundaries of the element. That said, the bounds will have technically changed for any elements inside, since they are positioned within the borders.

Usage

var aView = new UI.View();
aView.border = UI.makeBorder ( { color: UI.COLOR.blueColor(), style: "solid", width 5 } );
// the border will be 5px wide, solid, and blue.

Version

0.3 Introduced; Docs Valid.

Clone this wiki locally