new Component(options)
A component
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
Methods
-
destroy()
-
Removes the component from the DOM
- Source:
- See:
-
fire()
-
Fire an event with this component as the sender
- Source:
-
fireSizeChange()
-
Notify others of a layout change
- Source:
-
fireValueChange()
-
Notify others of a value change
- Source:
-
getElement()
-
Get the components root element
- Source:
Returns:
Element
-
listen(listener)
-
Add event listener
Parameters:
Name Type Description listener
Object An object with methods for different events
- Source: