Files
madbase/control-plane-ui/node_modules/@mui/x-data-grid/hooks/features/columnMenu/columnMenuInterfaces.d.ts
Vlad Durnea cffdf8af86
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
wip:milestone 0 fixes
2026-03-15 12:35:42 +02:00

48 lines
1.5 KiB
TypeScript

import * as React from 'react';
export interface GridColumnMenuState {
open: boolean;
field?: string;
}
export interface GridColumnMenuSlotProps {
/**
* Every item has a `displayOrder` based which it will be placed before or after other
* items in the column menu, `array.prototype.sort` is applied to sort the items.
* Note: If same `displayOrder` is applied to two or more items they will be sorted
* based on the definition order
* @default 100
*/
displayOrder?: number;
[key: string]: any;
}
export interface GridColumnMenuRootProps {
/**
* Initial `slots` - it is internal, to be overrriden by Pro or Premium packages
* @ignore - do not document.
*/
defaultSlots: {
[key: string]: React.JSXElementConstructor<any>;
};
/**
* Initial `slotProps` - it is internal, to be overrriden by Pro or Premium packages
* @ignore - do not document.
*/
defaultSlotProps: {
[key: string]: GridColumnMenuSlotProps;
};
/**
* `slots` could be used to add new and (or) override default column menu items
* If you register a nee component you must pass it's `displayOrder` in `slotProps`
* or it will be placed in the end of the list
*/
slots?: {
[key: string]: React.JSXElementConstructor<any> | null;
};
/**
* Could be used to pass new props or override props specific to a column menu component
* e.g. `displayOrder`
*/
slotProps?: {
[key: string]: GridColumnMenuSlotProps;
};
}