StyleProperty
StyleProperty
Kind: global class
StyleProperty(defaultValue, options)
Class defining Style property in a view.
A style property is a property used by a renderer. StyleProperty can only be applied to a View or a Primitive.
Returns: function
- It returns current Property declaration
Param | Type | Default | Description |
---|---|---|---|
defaultValue | * | The default value of the property | |
options | Object | Additional options | |
[options.readOnly] | boolean | false | Allows to disable direct set (error thrown) but property is bindable to their properties, like a private one |
[options.immutable] | boolean | false | Allows to define property as immutable (getter and setter disable, no watch) |
[options.set] | Setter |
| Allows to override default setter of the property |
markOutOfDate(object, pName)
Allows to force a property as out of date
Kind: static method of StyleProperty
Param | Type | Description |
---|---|---|
object | View | AbstractPrimitive | Instance that owns the property |
pName | String | Name of the property to mark out of date |
_setter()
Kind: static method of StyleProperty