A augmentable implementation for AttributeCore, providing less frequently used methods for Attribute management such as modifyAttrs(), removeAttr and reset()
_getAttrCfg
name
Defined in
attribute/js/AttributeExtras.js:125
Returns an object with the configuration properties (and value) for the given attribute. If attrName is not provided, returns the configuration properties for all attributes.
name
String
Optional. The attribute name. If not provided, the method will return the configuration for all attributes.
The configuration properties for the given attribute, or all attributes.
modifyAttr
name
config
Defined in
attribute/js/AttributeExtras.js:40
Updates the configuration of an attribute which has already been added.
The properties which can be modified through this interface are limited to the following subset of attributes, which can be safely modified after a value has already been set on the attribute:
Note: New attributes cannot be added using this interface. New attributes must be added using addAttr, or an appropriate manner for a class which utilises Attributes (e.g. the ATTRS property in Base).
removeAttr
name
Defined in
attribute/js/AttributeExtras.js:90
Removes an attribute from the host object
name
String
The name of the attribute to be removed.
reset
name
Defined in
attribute/js/AttributeExtras.js:100
Resets the attribute (or all attributes) to its initial value, as long as the attribute is not readOnly, or writeOnce.
name
String
Optional. The name of the attribute to reset. If omitted, all attributes are reset.
A reference to the host object.