Repository navigation
Tags
Tags
DataTable: selectedText prop for the selection bar's count What the bar says in place of "N selected"; '' (the default) keeps the count. For pages whose selection reaches beyond the ticked rows, such as "All 1,240 matching selected". The label has the class data-table-selected-label; selectedLabel() returns what is shown.
DataTable: stack below 920px, per-column classes, wrapping toolbar - .table-stacked now turns rows into cards below 920px (was 576px): a table with a link, a date and actions is already cramped on a laptop beside a sidebar. The toolbar follows the same query (.data-table-toolbar / .data-table-actions): search and buttons each take a full row, centred. - TableColumn takes an optional cssClass for the header cell. Not `$class`: parameter names reach the transpiled JS verbatim and `class` is reserved, which fails the whole bundle. - .table-col-wide-only hides a column only between 920 and 1199px, where the table is still a grid but narrow; stacked cards show the field again. - The toolbar's actions are a wrapping flex row with a gap, so buttons that run out of room wrap cleanly. Slot buttons need no margins of their own. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
DataTable: stacked rows on phones, and room for long URLs A `stacked` DataTable (or any table carrying .table-stacked) turns each row into a card below 576px: the header hides, cells flow inline behind their data-label, .table-stacked-main cells lift to the top at full width and the row actions push to the end. DataTable labels its default cells and hands column templates the title as `label`, which Viewi drops harmlessly for a template that has no such prop. .text-clamp-2 cuts a long value to two lines at any width and .cell-wide keeps a column from being starved to one character: overflow-wrap:anywhere takes its min-content to nothing, so a user's 1,000-character target URL used to wrap down a 100px column and make one row fill the screen. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
PreviousNext