Table row actions
Factor handbook > UI framework > Building user interfaces > Pre-made UI gadgets > Table gadgets

Prev:Table row selection
Next:Table gadget example

When the user double-clicks on a row, or presses RET while a row is selected, optional action and hook quotations are invoked. The action receives the row value and the hook receives the table gadget itself. These quotations are stored in the action and hook slots of a table, respectively.

If the single-click? slot is set to a true value, then single-clicking on a row will invoke the row action. The default value is f.

The row action can also be invoked programmatically:
row-action ( table -- )