Constructor
new Component(element, options)
Class used to capsulate general component functions
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element |
string | query id, element or css-query to specify the DOM-Element to connect to. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
Properties
|
- Source:
Extends
Classes
Methods
(static) _isAttached() → {boolean}
Checks if the instance is attached to one or more DOM-Elements
- Source:
Returns:
true, if instance is attached to one or more DOM-Elements
- Type
- boolean
(static) _isList() → {boolean}
Checks if the instance is attached to a list of DOM-Elements
- Source:
Returns:
true, if instance is attached to multiple DOM-Element
- Type
- boolean
(static) _isSingle() → {boolean}
Checks if the instance is attached to a single DOM-Element
- Source:
Returns:
true, if instance is attached to a single DOM-Element
- Type
- boolean
(static) _onRequestTemplate(template)
Callback function called when requested template is received
Parameters:
Name | Type | Description |
---|---|---|
template |
object | requested template |
- Source:
(static) _onRequestTemplateError(template)
Callback function called when requested template cannot be received
Parameters:
Name | Type | Description |
---|---|---|
template |
object | requested template |
- Source:
(static) attachDOM(element)
Attaches the instance of a MobileAge component to a DOM-Element
Parameters:
Name | Type | Description |
---|---|---|
element |
string | node | query id or css-query to specify the DOM-Element to connect to. |
- Source:
(static) log()
log for debug purpose
- Source:
(static) removeNode()
Removes the components node from the DOM
- Source: