Skip to content

Commit

Permalink
Update docs/data/data-grid/column-menu/column-menu.md
Browse files Browse the repository at this point in the history
Co-authored-by: Matheus Wichman <[email protected]>
Signed-off-by: Bilal Shafi <[email protected]>
  • Loading branch information
MBilalShafi and m4theushw authored Mar 27, 2023
1 parent 2287e80 commit 2d57c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/data-grid/column-menu/column-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can customize the column menu items by passing the `slots` and `slotProps` p
### Adding a menu item

To add a new menu item, create a new item slot and pass it to the `slots` prop. In the example below, the new slot is called `columnMenuUserItem` but you can choose any name and it'll be added to the menu automatically.
You can also set the `displayOrder` (default `100`) or pass new props to the slots using `slotProps` prop.
You can also set the `displayOrder` (default `100`) or pass new props to the slots using the `slotProps` prop.

```tsx
function CustomColumnMenu(props: GridColumnMenuProps) {
Expand Down

0 comments on commit 2d57c02

Please sign in to comment.