BGridProps
Public interface exported for DataGrid configuration and callbacks.
export interface BGridProps<T>| Member | Type | Description |
|---|---|---|
refoptional | React.Ref<BGridRef<T>> | Configuration contract for ref. See the declaration and linked source for the exact signature. |
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. |
summaryRowHeightoptional | number | Configuration contract for summaryRowHeight. 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. |
getRowHeightoptional | (row: T, index: number) => number | Configuration contract for getRowHeight. 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. |
disabledoptional | boolean | Configuration contract for disabled. 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;
toolbox?: {
sort?: string;
sortAscending?: string;
sortDescending?: string;
clearSort?: string;
filterApplied?: string;
openColumnOptions?: string;
filter?: string;
textFilter?: string;
valueFilter?: string;
numberFilter?: string;
contains?: string;
equals?: string;
notEquals?: string;
numberEquals?: string;
numberNotEquals?: string;
greaterThan?: string;
greaterThanOrEqual?: string;
lessThan?: string;
lessThanOrEqual?: string;
between?: string;
searchPlaceholder?: string;
textPlaceholder?: string;
numberPlaceholder?: string;
minimumPlaceholder?: string;
maximumPlaceholder?: string;
invalidRange?: string;
clear?: string;
apply?: string;
emptyValue?: string;
selectAll?: string;
noValues?: string;
noResults?: string;
extraMenu?: string;
columns?: string;
hiddenColumns?: string;
showAllColumns?: string;
hideThisColumn?: string;
lastVisibleColumn?: string;
hiddenColumnCount?: (count: number) => string;
moreValues?: (count: number) => 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;
/** Controls which cell remains active after a multi-cell selection. */
multiSelectFocusMode?: 'first' | 'last';
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 | BGridSummaryOptions<T> | 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. |
columnVisibilityoptional | boolean | BGridColumnVisibilityOptions<T> | Configuration contract for columnVisibility. 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. |
treeoptional | BGridTreeOptions<T> | Configuration contract for tree. See the declaration and linked source for the exact signature. |
masterDetailoptional | BGridMasterDetailOptions<T> | Configuration contract for masterDetail. See the declaration and linked source for the exact signature. |