Skip to content

Data Item Button Action

DataItemButtonAction sends an item command when a Unity UI Button is clicked.

DataItemButtonAction

The commands are commonly handled by widgets like DataTableWidget.

What It Does

  • Sends one configured command to the parent data widget when the button is clicked.
  • Sends an OnPointerClick system event to the root item GameObject.
  • Includes optional Identifier data so FSM logic can route by control source.

Setup

  1. Add Data Item Button Action to a UI Button.
  2. Set the Command to send on click.
  3. Optionally set Identifier to describe which control triggered the action.

Inspector Fields

Field Description
Command Action request sent to the parent data widget.
Identifier Optional label included with the action request.

Common commands:

  • Select
  • ToggleSelect
  • Delete
  • MoveUp
  • MoveDown
  • ContextMenu
  • Custom

Tips

  • Use one button/action component per control (Delete button, Move button, Select button).
  • Keep Identifier values consistent (DeleteButton, MoveUpButton) if FSM logic depends on them.
  • Use Custom command when you want custom handling via row-action events and FSMs.

See Also