UNPKG

mui-spfx-controls

Version:
14 lines 790 B
import { WebPartContext } from '@microsoft/sp-webpart-base'; import { GridColDef } from '@mui/x-data-grid'; import { IFieldInfo } from '@pnp/sp/fields'; /** * Generates a dashboard column configuration for use in MUI DataGrid. * * @param {WebPartContext} context - SharePoint WebPart context. * @param {IFieldInfo} currentField - SharePoint field information. * @param {boolean | undefined} editable - Whether the column is editable. * @param {boolean | undefined} resizable - Whether the column is resizable. * @returns {GridColDef} - Column definition for MUI DataGrid. */ export declare const generateDashboardColumn: (context: WebPartContext, currentField: IFieldInfo, editable?: boolean, resizable?: boolean) => GridColDef; //# sourceMappingURL=generateDashboardColumn.d.ts.map