@nanahoshi/mona-ui 0.51.0 → 0.52.0

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/docs/api/grid.md CHANGED
@@ -50,7 +50,7 @@ Component.
50
50
  | `expandedKeys` (two-way) | `unknown[]` | `[]` | Keys of the rows whose detail row is open: `rowKey` values, or the data items when the grid has no `rowKey`. Supports two-way binding; `expandedKeysChange` emits when the user opens or closes one. |
51
51
  | `pageSize` (two-way) | `number` | — | The number of items to be displayed on a page. Values that aren't positive integers are ignored. A new size keeps the first row of the current page in view. Supports two-way binding. |
52
52
  | `pageSizeValues` | `number[]` | `[]` | The page sizes that the user can select from. These values will be displayed in the page size dropdown. |
53
- | `resizeMethod` | `ResizeMethod` | `"fitView"` | The method to be used to set initial column widths. It can be the following values: - `fitView`: The columns will be resized to fit the available width. - `auto`: The columns will be resized based on the content. - A number representing the width of the columns. All columns except the columns with a specified width will have the same width. |
53
+ | `resizeMethod` | `ResizeMethod` | `"fitView"` | The method to be used to size the columns that have no `width`. It can be the following values: - `fitView`: The columns share the width the other columns leave, and follow the grid's width as it changes, such as when the window is resized. A column the user resized, or whose width came from restored state, keeps its width. - `auto`: The columns will be resized based on the content. - A number representing the width of the columns. All columns except the columns with a specified width will have the same width. |
54
54
  | `responsivePager` | `boolean` | `true` | Whether the pager is responsive. If set to `true`, the pager will be displayed as a dropdown when the grid width gets smaller. |
55
55
  | `rounded` | `"large" \| "medium" \| "none" \| "small"` | `"medium"` | The border radius of the grid. |
56
56
  | `rowClass` | `GridRowClass<T> \| null` | `null` | Returns extra CSS classes for the data row that shows an item, merged onto the row's own classes via `tailwind-merge`. It runs again whenever the item's row is rebound. Group, group footer and detail rows are not affected. To dim a row, prefer a text style such as `text-muted-foreground` over `opacity`: locked cells stay opaque so scrolled cells pass beneath them, and opacity on the row or its cells would let those show through. |