Listener
This element is not a UI component but it's the definition of a listener call.
Examples
Making a text clickable
The listener component will which listener and it properties when a user action is dispatch.
{
"type": "button",
"text": "My button",
"onPressed": {
"_type": "listener",
"name": "buttonPressed"
},
}
Properties
| Attribute | Description | Type |
|---|---|---|
| _type |
| |
| name | The listener name to call | string |
| props | Parameters passed to the listener | object |