_BaseClassMixin

(esrith/amos/core/_BaseClassMixin)

In the case of an inherit control, this class will be included the property 'className' of the superclass and its own widget. To be used to set the value of the class in domNode. example: create ValidationTextBox by inherit from TextBox and has property 'className' is TextBox => 'amos-textbox' ValidationTextBox => 'amos-validation-textbox' result: className => 'amos-validation-textbox amos-textbox'

Type Description
_styleAttr Object

when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value

Return type Description
__baseClassInherit(constructor) None

get className from superclass.

Properties Detail
<Object>
_styleAttr

when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value

Default value: {}

Methods Detail
__baseClassInherit
(
  • constructor
)

get className from superclass.

Parameters
  • <Object> constructor Required