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

ParamTypeDefaultDescription
defaultValue*

The default value of the property

optionsObject

Additional options

[options.readOnly]booleanfalse

Allows to disable direct set (error thrown) but property is bindable to their properties, like a private one

[options.immutable]booleanfalse

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

ParamTypeDescription
objectView | AbstractPrimitive

Instance that owns the property

pNameString

Name of the property to mark out of date

_setter()

Kind: static method of StyleProperty