new Indicator(element, options)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLElement | DOM element for component instantiation and scope |
options |
Object |
Classes
Methods
clearValue()
- Description:
Remove the indicator value.
- Source:
decrement(modifier:)
- Description:
Decrement the indicator value.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
modifier: |
int | value to be substracted |
destroy()
- Description:
Destroy component.
- Source:
getValue()
- Description:
Get current value
- Source:
increment(modifier:)
- Description:
Increment the indicator value.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
modifier: |
int | value to be added |
init()
- Description:
Initialise component.
- Source:
setValue(target:)
- Description:
Set a specific value.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target: |
int | value to be used |
(static) autoInit(root) → {Indicator}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root |
HTMLElement | DOM element for component instantiation and scope |
Returns:
An instance of Indicator.
- Type
- Indicator