table
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Table gadgets

Next:table? ( object -- ? )


Vocabulary
ui.gadgets.tables

Definition


TUPLE: table < line-gadget
{ renderer initial: trivial-renderer }
{ action initial: [ drop ] } single-click?
{ hook initial: [ drop ] } { gap initial: 2 } column-widths
total-width focus-border-color mouse-color column-line-color
selection-required? selection-index selection mouse-index
{ takes-focus? initial: t } focused? rows ;


Methods







M:: table draw-line ( row index table -- )
row table renderer>> row-columns
table column-widths>> table table-column-alignment row index
table row-font table gap>> draw-columns ;