Namespace chip.actions
The namespace for the CHIP API's actions contract, which
allows you to provide a CHIP's actions with all related functionality.
Defined in: actions.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
chip.actions.setActionsProvider(fnProvider)
Determines the callback function which provides the internal actions for this CHIP.
|
Method Detail
<static>
chip.actions.setActionsProvider(fnProvider)
Determines the callback function which provides the internal actions for this CHIP. The
callback has to return an array of actions. Action is an object with the following
properties: text, icon and targetURL or a press handler.
- Parameters:
- {function} fnProvider
- a callback which returns an array of action objects representing this CHIP's internal actions.
- Since:
- 1.25.0