mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 03:24:54 +00:00
ui.table(columns, rows, props) is a header and rows of text: columns with a label and an align (end for numbers), rows of strings and numbers, an optional sort indicator and selected row. onPress(state, row) takes a row's press and onSort(state, column) a header's (as change); the host walk sets selectable and sortable. widget-wire writes it as type 17 with props 39 to 45, and widget-web walks it too. The web host draws an HTML table that scrolls sideways; the TUI writes aligned text. Clients draw it like their markdown tables. |
||
|---|---|---|
| .. | ||
| widget-mobile | ||
| widget-web | ||
| widget-wire | ||