Namespace contract.types
The namespace for the contract interface (to be used by a page builder) for
the types contract, which allows you to change the CHIP's type of visualization.
Defined in: actions.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
contract.types.setType(sType)
Informs the CHIP to change it's visualization type to
sType. |
Method Detail
<static>
contract.types.setType(sType)
Informs the CHIP to change it's visualization type to
sType. In case the CHIP
has not attached an handler for this event yet, the contract will call the handler directly
while attaching it.
- Parameters:
- {string} sType
- The type to be set.
Note: Before comparison
sType.toLowerCase()will be used.
- Since:
- 1.32.0
- Throws:
- Error if
sTypeis not valid.
- See:
- chip.types.attachSetType
- chip.types.getAvailableTypes