diff --git a/src-docs/src/views/datagrid/_snippets.tsx b/src-docs/src/views/datagrid/_snippets.tsx
index fb0d3384e6c..c6a56cf67ee 100644
--- a/src-docs/src/views/datagrid/_snippets.tsx
+++ b/src-docs/src/views/datagrid/_snippets.tsx
@@ -8,15 +8,20 @@ inMemory={{ level: 'sorting' }}`,
columns: `columns={[
{
id: 'A', // required
+ display: <>Column A >, // optional column header rendering
+ displayAsText: 'Column A', // column header as plain text
initialWidth: 150, // starting width of 150px
isResizable: false, // prevents the user from resizing width
- actions: false, // no column header actions are displayed
isExpandable: false, // doesn't allow clicking in to see the content in a popup
- actions: { showMoveLeft: false, showMoveRight: false }, // doesn't show move actions in column header
+ isSortable: false, // prevents the user from sorting the data grid by this column
+ defaultSortDirection: 'asc', // sets the default sort direction
schema: 'franchise', // custom schema later defined under schemaDetectors
+ actions: false, // no column header actions are displayed
+ actions: { showMoveLeft: false, showMoveRight: false }, // doesn't show move actions in column header
cellActions: [ // provides one additional cell action that triggers an alert once clicked
({ Component }) => alert('test')}>Custom action,
],
+ visibleCellActions: 2, // configures the number of cell action buttons immediately visible on a cell
},
]}`,
columnVisibility: `columnVisibility={{
diff --git a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
index 6ee92c0d201..1090e005b7a 100644
--- a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
+++ b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
@@ -1075,6 +1075,7 @@ Array [
>
@@ -1118,6 +1119,7 @@ Array [
>
@@ -1514,6 +1516,7 @@ Array [
>
@@ -1557,6 +1560,7 @@ Array [
>
@@ -2250,6 +2254,7 @@ Array [
>
@@ -2293,6 +2298,7 @@ Array [
>