BGridProps
Public interface exported for DataGrid configuration and callbacks.
export interface BGridProps<T>| Member | Type | Description |
|---|---|---|
widthrequired | number | Configuration contract for width. See the declaration and linked source for the exact signature. |
heightrequired | number | Configuration contract for height. See the declaration and linked source for the exact signature. |
headerHeightoptional | number | Configuration contract for headerHeight. See the declaration and linked source for the exact signature. |
footerHeightoptionaldeprecated | number | Configuration contract for footerHeight. See the declaration and linked source for the exact signature. |
bottomBarHeightoptional | number | Configuration contract for bottomBarHeight. See the declaration and linked source for the exact signature. |
summaryHeightoptional | number | Configuration contract for summaryHeight. See the declaration and linked source for the exact signature. |
itemHeightoptional | number | Configuration contract for itemHeight. See the declaration and linked source for the exact signature. |
itemPaddingoptional | number | Configuration contract for itemPadding. See the declaration and linked source for the exact signature. |
frozenColumnIndexoptional | number | Configuration contract for frozenColumnIndex. See the declaration and linked source for the exact signature. |
frozenRowCountoptional | number | Configuration contract for frozenRowCount. See the declaration and linked source for the exact signature. |
columnsrequired | BGridColumnWithOptionalWidth<T>[] | Configuration contract for columns. See the declaration and linked source for the exact signature. |
columnsGroupoptionaldeprecated | BGridColumnGroup[] | Configuration contract for columnsGroup. See the declaration and linked source for the exact signature. |
columnGroupsoptional | BGridColumnGroupNode[] | Configuration contract for columnGroups. See the declaration and linked source for the exact signature. |
onChangeColumnsoptional | (columnIndex: number | null, info: BGridChangeColumnsInfo<T>) => void | Configuration contract for onChangeColumns. See the declaration and linked source for the exact signature. |
dataoptional | BGridDataItem<T>[] | Configuration contract for data. See the declaration and linked source for the exact signature. |
onChangeDataoptional | (
index: number,
columnIndex: number | null,
item: T,
column: BGridColumn<T> | null,
meta?: BGridChangeDataMeta<T>,
) => void | Configuration contract for onChangeData. See the declaration and linked source for the exact signature. |
pageoptional | BGridPage | Configuration contract for page. See the declaration and linked source for the exact signature. |
enableLoadMoreoptional | boolean | Configuration contract for enableLoadMore. See the declaration and linked source for the exact signature. |
onLoadMoreoptional | (params: { scrollLeft: number; scrollTop: number }) => void | Configuration contract for onLoadMore. See the declaration and linked source for the exact signature. |
endLoadMoreRenderoptional | () => React.ReactNode | Configuration contract for endLoadMoreRender. See the declaration and linked source for the exact signature. |
scrollbaroptional | BGridScrollbarOptions | Configuration contract for scrollbar. See the declaration and linked source for the exact signature. |
statusoptional | BGridStatusOptions | Configuration contract for status. See the declaration and linked source for the exact signature. |
paginationoptional | BGridPaginationViewOptions | Configuration contract for pagination. See the declaration and linked source for the exact signature. |
classNameoptional | string | Configuration contract for className. See the declaration and linked source for the exact signature. |
styleoptional | React.CSSProperties | Configuration contract for style. See the declaration and linked source for the exact signature. |
loadingoptional | boolean | Configuration contract for loading. See the declaration and linked source for the exact signature. |
spinningoptional | boolean | Configuration contract for spinning. See the declaration and linked source for the exact signature. |
scrollTopoptional | number | Configuration contract for scrollTop. See the declaration and linked source for the exact signature. |
scrollLeftoptional | number | Configuration contract for scrollLeft. See the declaration and linked source for the exact signature. |
rowCheckedoptional | BGridRowChecked<T> | Configuration contract for rowChecked. See the declaration and linked source for the exact signature. |
sortoptional | BGridSortInfo | Configuration contract for sort. See the declaration and linked source for the exact signature. |
onClickoptional | (params: BGridClickParams<T>) => void | Configuration contract for onClick. See the declaration and linked source for the exact signature. |
msgoptional | {
emptyList?: string;
} | Configuration contract for msg. See the declaration and linked source for the exact signature. |
rowKeyoptional | React.Key | React.Key[] | Configuration contract for rowKey. See the declaration and linked source for the exact signature. |
selectedRowKeyoptional | React.Key | React.Key[] | Configuration contract for selectedRowKey. See the declaration and linked source for the exact signature. |
editableoptional | boolean | Configuration contract for editable. See the declaration and linked source for the exact signature. |
editTriggeroptional | BGridEditTrigger | Configuration contract for editTrigger. See the declaration and linked source for the exact signature. |
showLineNumberoptional | boolean | Configuration contract for showLineNumber. See the declaration and linked source for the exact signature. |
getRowClassNameoptional | (ri: number, item: BGridDataItem<T>) => string | undefined | Configuration contract for getRowClassName. See the declaration and linked source for the exact signature. |
cellMergeOptionsoptional | {
columnsMap: Record<number, BGridCellMergeColumn>;
} | Configuration contract for cellMergeOptions. See the declaration and linked source for the exact signature. |
cellSelectionOptionsoptional | {
enabled?: boolean;
clearOnEscape?: boolean;
clearOnOutsideClick?: boolean;
maxClipboardCells?: number;
maxClipboardTextLength?: number;
onCopyError?: (error: BGridCellSelectionCopyError) => void;
onPasteError?: (error: BGridCellSelectionPasteError) => void;
/** Creates missing trailing rows while pasting. Returned rows are always marked as `new`. */
createRowOnPaste?: (context: BGridCellSelectionPasteRowContext<T>) => BGridDataItem<T> | undefined;
} | Configuration contract for cellSelectionOptions. See the declaration and linked source for the exact signature. |
cellNavigationOptionsoptional | BGridCellNavigationOptions | Configuration contract for cellNavigationOptions. See the declaration and linked source for the exact signature. |
variantoptional | 'default' | 'vertical-bordered' | Configuration contract for variant. See the declaration and linked source for the exact signature. |
summaryoptional | {
columns: BGridSummaryColumn<T>[];
position: 'top' | 'bottom';
} | Configuration contract for summary. See the declaration and linked source for the exact signature. |
columnSortableoptional | boolean | Configuration contract for columnSortable. See the declaration and linked source for the exact signature. |
reorderoptional | BGridReorderInfo<T> | Configuration contract for reorder. See the declaration and linked source for the exact signature. |
reorderingInfooptional | BGridReorderingInfo | Configuration contract for reorderingInfo. See the declaration and linked source for the exact signature. |
pivotoptional | BGridPivotOptions<T> | Configuration contract for pivot. See the declaration and linked source for the exact signature. |
dataControloptional | BGridDataControl | Configuration contract for dataControl. See the declaration and linked source for the exact signature. |
iconsoptional | BGridToolboxIcons | Configuration contract for icons. See the declaration and linked source for the exact signature. |
searchOptionsoptional | BGridSearchOptions<T> | Configuration contract for searchOptions. See the declaration and linked source for the exact signature. |
contextMenuOptionsoptional | BGridContextMenuOptions<T> | Configuration contract for contextMenuOptions. See the declaration and linked source for the exact signature. |