@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
41 lines (40 loc) • 1.75 kB
TypeScript
import * as React from 'react';
import { ButtonProps } from '@mui/material/Button';
import { TooltipProps } from '@mui/material/Tooltip';
import { GridCsvExportOptions, GridPrintExportOptions } from '../../models/gridExport';
export interface GridExportDisplayOptions {
/**
* If `true`, this export option will be removed from the GridToolbarExport menu.
* @default false
*/
disableToolbarButton?: boolean;
}
export interface GridExportMenuItemProps<Options extends {}> {
hideMenu?: () => void;
options?: Options & GridExportDisplayOptions;
}
export type GridCsvExportMenuItemProps = GridExportMenuItemProps<GridCsvExportOptions>;
export type GridPrintExportMenuItemProps = GridExportMenuItemProps<GridPrintExportOptions>;
export interface GridToolbarExportProps {
csvOptions?: GridCsvExportOptions & GridExportDisplayOptions;
printOptions?: GridPrintExportOptions & GridExportDisplayOptions;
/**
* The props used for each slot inside.
* @default {}
*/
slotProps?: {
button?: Partial<ButtonProps>;
tooltip?: Partial<TooltipProps>;
};
[x: `data-${string}`]: string;
}
declare function GridCsvExportMenuItem(props: GridCsvExportMenuItemProps): React.JSX.Element;
declare namespace GridCsvExportMenuItem {
var propTypes: any;
}
declare function GridPrintExportMenuItem(props: GridPrintExportMenuItemProps): React.JSX.Element;
declare namespace GridPrintExportMenuItem {
var propTypes: any;
}
declare const GridToolbarExport: React.ForwardRefExoticComponent<GridToolbarExportProps> | React.ForwardRefExoticComponent<GridToolbarExportProps & React.RefAttributes<HTMLButtonElement>>;
export { GridToolbarExport, GridCsvExportMenuItem, GridPrintExportMenuItem };