<ui-button>
A clickable button rendered by ImGui.
<ui-button text="Click Me" action="my-action" tooltip="Optional"></ui-button>
Attributes
| Attribute | Required | Description |
|---|---|---|
text | yes | Button label |
action | yes | Identifier sent back in button-clicked data |
tooltip | no | Hover tooltip text |
Event
Emits button-clicked when clicked. The event data contains all HTML attributes of the button plus a pane field.
{ "action": "button-clicked", "data": { "action": "my-action", "text": "Click Me", "pane": "main" } }