Skip to main content

<ui-button>

A clickable button rendered by ImGui.

<ui-button text="Click Me" action="my-action" tooltip="Optional"></ui-button>

Attributes

AttributeRequiredDescription
textyesButton label
actionyesIdentifier sent back in button-clicked data
tooltipnoHover 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" } }