shirkasoft-ui-components 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -544,7 +544,7 @@ cols: Column[] = [
|
|
|
544
544
|
|
|
545
545
|
i18n: `table.missing.{summary, row, cell, column}` (Spanish fallbacks).
|
|
546
546
|
|
|
547
|
-
**Resizable columns.** With `[showGridlines]="true"` each header has a handle on its right border: drag it to widen/narrow the column (minimum 60px; the table scrolls horizontally when it no longer fits), use the arrow keys on it (Shift = 50px steps), or double click it to go back to the automatic width. Disable it with `[resizableColumns]="false"`. Every change emits `columnResize`.
|
|
547
|
+
**Resizable columns.** With `[showGridlines]="true"` each header has a handle on its right border: drag it to widen/narrow the column (minimum 60px; the table scrolls horizontally when it no longer fits), use the arrow keys on it (Shift = 50px steps), or double click it to go back to the automatic width. Disable it with `[resizableColumns]="false"`. Every change emits `columnResize`. The row actions column can be resized too (its width is stored under the `actions` key); its automatic width fits the most actions visible in a row of the current page (honouring each action's `isVisible`), not every action defined.
|
|
548
548
|
|
|
549
549
|
To keep the widths, either give the table a `stateKey` (saved in `localStorage` under `<stateKey>:columnWidths`, or `sessionStorage` with `stateStorage="session"`, and restored on load), or bind `[(columnWidths)]` to save them yourself (e.g. in the user's preferences). With both, the stored widths win on load. `resetColumnWidths()` resets every column (and clears the stored state).
|
|
550
550
|
|