Repository navigation
v2.0.0-beta.1
Pre-releaseMajor Changes
-
c662c8aThanks @Psvensso! - The editing options ofuseTMDataGridare namespaced under oneediting
object, matching the 2.0meta.editcolumn namespacing.editMode: Xbecomesediting: { mode: X }onEditCommitbecomesediting.onCommitonEditCommitBatchbecomesediting.onCommitBatchrowValidators,isRowEditable,newRowDefaults,onRowAddand
onRowDeletekeep their names and move insideeditinggetRowIdstays top-level and is still required onceeditingis set
TMDataGridEditingOptionsis now the type of theeditingobject itself.
TMDataGridEditMode, theeditengine and the feature flags are unchanged.
Minor Changes
-
#28
acd8b0cThanks @Psvensso! - Generated lanes are no longer user settings.- The checkbox and edit lanes are
enableHiding: false, like the other three. - "Manage columns" lists only hideable columns; a column with
enableHiding: falseis left out rather than shown disabled. - Show/hide all writes only the columns it lists. It used
table.toggleAllColumnsVisible, which writes every leaf column: "show all"
published the tree column and "hide all" forced it visible. - A column pinned right lands to the left of the edit lane.
- A stale
columnVisibilityentry for a generated lane - persisted before
this release, or passed ininitialState- is dropped at mount and on
Reset layout, since nothing in the grid could bring the lane back.
New export:
keepGeneratedColumnsOutermost,isGeneratedColumn. - The checkbox and edit lanes are
Patch Changes
-
#28
acc190bThanks @Psvensso! ---dg-radiussets the frame's corner radius, defaulting to
--mantine-radius-md.<TMDataGrid {...grid} style={{ "--dg-radius": 0 }} />
-
#28
aa3aeacThanks @Psvensso! -meta.autoSizewaits for the column's first cells.It ran once on the mounting commit, so a grid whose rows are fetched had a
header and no cells to measure and the column kept that width. The
double-click gesture and the Autosize column menu item are unchanged.