Closed GastonMikro closed 1 year ago
I don't want all of the options in this menu. Can I remove some?
I tried this but it does not work:
const columnMenuProps = { items: (defaultItems) => defaultItems.filter( (item) => item.name !== "group" && item.name !== "ungroup" && item.name !== "lock-start" ), };
<ReactDataGrid idProperty="id" columns={columns} dataSource={dataSource} style={gridStyle} pagination columnMenuProps={columnMenuProps} />
I don't want all of the options in this menu. Can I remove some?
I tried this but it does not work:
const columnMenuProps = { items: (defaultItems) => defaultItems.filter( (item) => item.name !== "group" && item.name !== "ungroup" && item.name !== "lock-start" ), };