Widget API

The widget mimics AceGUI EditBox widget so it could be used with AceConfig input entries.

Methods

:SetText(value)

Arguments

Set the action to be displayed.

  • value (string|number|nil) – the action to be displayed. See the action format page for more details.

:SetLabel(label)

Define the text to be displayed over the action slot. Providing an empty string or nil hides the label ; the action slot is then expanded to fill the void.

Arguments

  • label (string|nil) – the label to display

:SetDisabled(disabled)

Set the disabled state of the widget. When disabled, the widget does not react to user inputs and is displayed in grey.

Arguments

  • disabled (boolean) – true to disable the widget, false to enable it.

Callbacks

OnEnter

Fired when the cursor enters the action slot.

OnLeave

Fired when the cursor leaves the action slot.

OnEnterPressed

Fired when an action is dropped on the action slot or when it is cleared by a right click.

Arguments


Comments

Posts Quoted:
Reply
Clear All Quotes