Methods
addBtnData(data)
- Description:
Add data to button for communication
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Record.<string, unknown> | Data object to associate with button |
addListener(callback)
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function | Event handler function |
btnDataValueChanged()
- Description:
Handle button data value changes Updates button state based on data availability and requirements
- Source:
fireNotice(event)
- Description:
Fire custom event with button data
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
event |
Event | Click event from button |
getBtnData() → {Record.<string, unknown>}
Returns:
- Type
- Record.<string, unknown>
parseBtnData(raw) → {Record.<string, unknown>}
Parameters:
| Name | Type | Description |
|---|---|---|
raw |
string | null | undefined | Attribute value from data-outlet-btn-btn-data-value |
Returns:
- Type
- Record.<string, unknown>
removeListener(callback)
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function | Event handler function to remove |