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, optional action and hook quotations are invoked. The action receives the row value (if any was selected) 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 -- )