Skip to content

UI.View.initWithOptions

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI.View)

Returns: void

Parameters: options (object)

Calls the object's init method, and then sets various properties from options. The options object should use the same property as defined in the view.

Not all properties are supported when using this method.

Note: When subclassing, it is expected that this method will be overridden to support additional properties.

Usage

var aView = new UI.View();
aView.initWithOptions ( { backgroundColor: someColor, frame: someFrame } );

Version

0.3 Introduced; Docs Valid.

Clone this wiki locally