DynamicPropertiesMixin Class
addon/mixins/dynamic-properties.js:13
Mixin containing logic making available passing all desirable properties to components in a single object, which keys are related to component's desirable properties.
Item Index
Methods
Methods
_addDynamicProperty
-
propertyName
Adds component's new dynamic property. Gets related value from DynamicPropertiesMixin:dynamicProperties:property, and assignes it to related component's property, then attaches observer.
Parameters:
-
propertyName
StringName of dynamic property that must be added.
_dynamicPropertiesDidChange
()
private
Observes & handles any changes in 'dynamicProperties', assigns actual values to a component's related properties (including initialization moment).
_removeDynamicProperties
()
private
Removes component's all previously added dynamic properties. Removes related component's properties & observers.
_removeDynamicProperty
-
propertyName
Removes component's previously added dynamic property. Removes related component's property & observer.
Parameters:
-
propertyName
StringName of dynamic property that must be removed.
Properties
_componentWrapperIsAvailable
Boolean
private
Flag: indicates whether component's wrapper DOM-element is available for select now.
_dynamicPropertiesMetadata
Object[]
private
Array with objects containing names of already assigned DynamicPropertiesMixin:dynamicProperties:property and observer handlers related to them. Each object in array has following structure: { propertyName: '...', propertyObserverHandler: function() { ... } }.
Default: null
dynamicProperties
Object
Object containing dynamic properties that must be assigned to component using dynamic-properties mixin.
Default: null