TypeScript API Reference

Public interfaces & types

Public types configured by beautiful-grid users or received in callbacks are documented with signatures matching the library source.

Includes 85 public types. Internal types used only by the Zustand store and rendering implementation, such as AppModel, AppActions are excluded from the consumer API.

Core component types

BGridProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridProps<T>
MemberTypeDescription
width
required
numberConfiguration contract for width. See the declaration and linked source for the exact signature.
height
required
numberConfiguration contract for height. See the declaration and linked source for the exact signature.
headerHeight
optional
numberConfiguration contract for headerHeight. See the declaration and linked source for the exact signature.
footerHeight
optionaldeprecated
numberConfiguration contract for footerHeight. See the declaration and linked source for the exact signature.
bottomBarHeight
optional
numberConfiguration contract for bottomBarHeight. See the declaration and linked source for the exact signature.
summaryHeight
optional
numberConfiguration contract for summaryHeight. See the declaration and linked source for the exact signature.
itemHeight
optional
numberConfiguration contract for itemHeight. See the declaration and linked source for the exact signature.
itemPadding
optional
numberConfiguration contract for itemPadding. See the declaration and linked source for the exact signature.
frozenColumnIndex
optional
numberConfiguration contract for frozenColumnIndex. See the declaration and linked source for the exact signature.
frozenRowCount
optional
numberConfiguration contract for frozenRowCount. See the declaration and linked source for the exact signature.
columns
required
BGridColumnWithOptionalWidth<T>[]Configuration contract for columns. See the declaration and linked source for the exact signature.
columnsGroup
optionaldeprecated
BGridColumnGroup[]Configuration contract for columnsGroup. See the declaration and linked source for the exact signature.
columnGroups
optional
BGridColumnGroupNode[]Configuration contract for columnGroups. See the declaration and linked source for the exact signature.
onChangeColumns
optional
(columnIndex: number | null, info: BGridChangeColumnsInfo<T>) => voidConfiguration contract for onChangeColumns. See the declaration and linked source for the exact signature.
data
optional
BGridDataItem<T>[]Configuration contract for data. See the declaration and linked source for the exact signature.
onChangeData
optional
( index: number, columnIndex: number | null, item: T, column: BGridColumn<T> | null, meta?: BGridChangeDataMeta<T>, ) => voidConfiguration contract for onChangeData. See the declaration and linked source for the exact signature.
page
optional
BGridPageConfiguration contract for page. See the declaration and linked source for the exact signature.
enableLoadMore
optional
booleanConfiguration contract for enableLoadMore. See the declaration and linked source for the exact signature.
onLoadMore
optional
(params: { scrollLeft: number; scrollTop: number }) => voidConfiguration contract for onLoadMore. See the declaration and linked source for the exact signature.
endLoadMoreRender
optional
() => React.ReactNodeConfiguration contract for endLoadMoreRender. See the declaration and linked source for the exact signature.
scrollbar
optional
BGridScrollbarOptionsConfiguration contract for scrollbar. See the declaration and linked source for the exact signature.
status
optional
BGridStatusOptionsConfiguration contract for status. See the declaration and linked source for the exact signature.
pagination
optional
BGridPaginationViewOptionsConfiguration contract for pagination. See the declaration and linked source for the exact signature.
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
style
optional
React.CSSPropertiesConfiguration contract for style. See the declaration and linked source for the exact signature.
loading
optional
booleanConfiguration contract for loading. See the declaration and linked source for the exact signature.
spinning
optional
booleanConfiguration contract for spinning. See the declaration and linked source for the exact signature.
scrollTop
optional
numberConfiguration contract for scrollTop. See the declaration and linked source for the exact signature.
scrollLeft
optional
numberConfiguration contract for scrollLeft. See the declaration and linked source for the exact signature.
rowChecked
optional
BGridRowChecked<T>Configuration contract for rowChecked. See the declaration and linked source for the exact signature.
sort
optional
BGridSortInfoConfiguration contract for sort. See the declaration and linked source for the exact signature.
onClick
optional
(params: BGridClickParams<T>) => voidConfiguration contract for onClick. See the declaration and linked source for the exact signature.
msg
optional
{ emptyList?: string; }Configuration contract for msg. See the declaration and linked source for the exact signature.
rowKey
optional
React.Key | React.Key[]Configuration contract for rowKey. See the declaration and linked source for the exact signature.
selectedRowKey
optional
React.Key | React.Key[]Configuration contract for selectedRowKey. See the declaration and linked source for the exact signature.
editable
optional
booleanConfiguration contract for editable. See the declaration and linked source for the exact signature.
editTrigger
optional
BGridEditTriggerConfiguration contract for editTrigger. See the declaration and linked source for the exact signature.
showLineNumber
optional
booleanConfiguration contract for showLineNumber. See the declaration and linked source for the exact signature.
getRowClassName
optional
(ri: number, item: BGridDataItem<T>) => string | undefinedConfiguration contract for getRowClassName. See the declaration and linked source for the exact signature.
cellMergeOptions
optional
{ columnsMap: Record<number, BGridCellMergeColumn>; }Configuration contract for cellMergeOptions. See the declaration and linked source for the exact signature.
cellSelectionOptions
optional
{ 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.
cellNavigationOptions
optional
BGridCellNavigationOptionsConfiguration contract for cellNavigationOptions. See the declaration and linked source for the exact signature.
variant
optional
'default' | 'vertical-bordered'Configuration contract for variant. See the declaration and linked source for the exact signature.
summary
optional
{ columns: BGridSummaryColumn<T>[]; position: 'top' | 'bottom'; }Configuration contract for summary. See the declaration and linked source for the exact signature.
columnSortable
optional
booleanConfiguration contract for columnSortable. See the declaration and linked source for the exact signature.
reorder
optional
BGridReorderInfo<T>Configuration contract for reorder. See the declaration and linked source for the exact signature.
reorderingInfo
optional
BGridReorderingInfoConfiguration contract for reorderingInfo. See the declaration and linked source for the exact signature.
pivot
optional
BGridPivotOptions<T>Configuration contract for pivot. See the declaration and linked source for the exact signature.
dataControl
optional
BGridDataControlConfiguration contract for dataControl. See the declaration and linked source for the exact signature.
icons
optional
BGridToolboxIconsConfiguration contract for icons. See the declaration and linked source for the exact signature.
searchOptions
optional
BGridSearchOptions<T>Configuration contract for searchOptions. See the declaration and linked source for the exact signature.
contextMenuOptions
optional
BGridContextMenuOptions<T>Configuration contract for contextMenuOptions. See the declaration and linked source for the exact signature.

BGridColumn

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridColumn<T>
MemberTypeDescription
id
optional
stringConfiguration contract for id. See the declaration and linked source for the exact signature.
key
required
string | string[]Configuration contract for key. See the declaration and linked source for the exact signature.
label
required
ReactNodeConfiguration contract for label. See the declaration and linked source for the exact signature.
width
required
numberConfiguration contract for width. See the declaration and linked source for the exact signature.
align
optional
AlignDirectionConfiguration contract for align. See the declaration and linked source for the exact signature.
headerAlign
optional
AlignDirectionConfiguration contract for headerAlign. See the declaration and linked source for the exact signature.
sortDisable
optional
booleanConfiguration contract for sortDisable. See the declaration and linked source for the exact signature.
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
getClassName
optional
(item: BGridDataItem<T>) => stringConfiguration contract for getClassName. See the declaration and linked source for the exact signature.
headerClassName
optional
stringConfiguration contract for headerClassName. See the declaration and linked source for the exact signature.
headerStyle
optional
React.CSSPropertiesConfiguration contract for headerStyle. See the declaration and linked source for the exact signature.
itemRender
optional
React.FC<BGridItemRenderProps<T>>Configuration contract for itemRender. See the declaration and linked source for the exact signature.
editor
optional
BGridCellEditorConfig<T>Configuration contract for editor. See the declaration and linked source for the exact signature.
editTrigger
optional
BGridEditTriggerConfiguration contract for editTrigger. See the declaration and linked source for the exact signature.
editorIcon
optional
BGridEditorIconConfig<T>Configuration contract for editorIcon. See the declaration and linked source for the exact signature.
onChangeValue
optional
(params: BGridChangeValueParams<T>) => void | Promise<void>Configuration contract for onChangeValue. See the declaration and linked source for the exact signature.
getClipboardText
optional
(params: BGridCellClipboardTextParams<T>) => anyConfiguration contract for getClipboardText. See the declaration and linked source for the exact signature.
searchable
optional
booleanConfiguration contract for searchable. See the declaration and linked source for the exact signature.
getSearchText
optional
(params: BGridSearchCellParams<T>) => unknownConfiguration contract for getSearchText. See the declaration and linked source for the exact signature.
editable
optional
booleanConfiguration contract for editable. See the declaration and linked source for the exact signature.
toolbox
optional
boolean | BGridToolboxConfig<T>Configuration contract for toolbox. See the declaration and linked source for the exact signature.
filter
optional
false | BGridColumnFilterConfig<T>Configuration contract for filter. See the declaration and linked source for the exact signature.
sortComparator
optional
( a: unknown, b: unknown, params: { column: BGridColumn<T>; aItem: BGridDataItem<T>; bItem: BGridDataItem<T>; }, ) => numberConfiguration contract for sortComparator. See the declaration and linked source for the exact signature.

BGridDataItem

Public type exported for DataGrid configuration and callbacks.

export type BGridDataItem<T> = {
  values: T;
  status?: BGridDataItemStatus;
  /** Column instances directly edited since the data owner last cleared the edit state. */
  editedColumnIds?: string[];
  /** Stable key tokens whose underlying values changed since the data owner last cleared the change state. */
  changedKeys?: string[];
  checked?: boolean;
  parentItemIndex?: number;
  meta?: Record<string, any>;
};

AlignDirection

Public type exported for DataGrid configuration and callbacks.

export type AlignDirection = 'left' | 'center' | 'right';

BGridCellClipboardTextParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellClipboardTextParams<T>
MemberTypeDescription
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
value
required
anyConfiguration contract for value. See the declaration and linked source for the exact signature.

BGridColumnWithOptionalWidth

Public type exported for DataGrid configuration and callbacks.

export type BGridColumnWithOptionalWidth<T> = Partial<Pick<BGridColumn<T>, 'width'>> & Omit<BGridColumn<T>, 'width'>;

BGridDataItemStatus

Public enum exported for DataGrid configuration and callbacks.

export enum BGridDataItemStatus
MemberTypeDescription
new
required
numberConfiguration contract for new. See the declaration and linked source for the exact signature.
edit
required
numberConfiguration contract for edit. See the declaration and linked source for the exact signature.
remove
required
numberConfiguration contract for remove. See the declaration and linked source for the exact signature.

BGridItemRenderProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridItemRenderProps<T>
MemberTypeDescription
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
value
required
anyConfiguration contract for value. See the declaration and linked source for the exact signature.
editable
optional
booleanConfiguration contract for editable. See the declaration and linked source for the exact signature.
handleSave
optional
(value: any, columnDirection?: MoveDirection, rowDirection?: MoveDirection) => voidConfiguration contract for handleSave. See the declaration and linked source for the exact signature.
handleCancel
optional
() => voidConfiguration contract for handleCancel. See the declaration and linked source for the exact signature.
handleMove
optional
(columnDirection: MoveDirection, rowDirection: MoveDirection) => voidConfiguration contract for handleMove. See the declaration and linked source for the exact signature.

MoveDirection

Public type exported for DataGrid configuration and callbacks.

export type MoveDirection = 'prev' | 'next' | 'current';

Data and events

BGridChangeColumnsInfo

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridChangeColumnsInfo<T>
MemberTypeDescription
width
optional
numberConfiguration contract for width. See the declaration and linked source for the exact signature.
columns
required
BGridColumn<T>[]Configuration contract for columns. See the declaration and linked source for the exact signature.
columnsGroup
optional
BGridColumnGroup[]Configuration contract for columnsGroup. See the declaration and linked source for the exact signature.
columnGroups
optional
BGridColumnGroupNode[]Configuration contract for columnGroups. See the declaration and linked source for the exact signature.

BGridChangeDataMeta

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridChangeDataMeta<T>
MemberTypeDescription
source
required
BGridEditSourceConfiguration contract for source. See the declaration and linked source for the exact signature.
originColumn
required
BGridColumn<T>Configuration contract for originColumn. See the declaration and linked source for the exact signature.
changes
required
readonly BGridCellValueChange<T>[]Configuration contract for changes. See the declaration and linked source for the exact signature.
dataItem
required
BGridDataItem<T>Configuration contract for dataItem. See the declaration and linked source for the exact signature.
transaction
required
{ merged: boolean; canonicalCell: BGridCellAddress; visibleIndexes: readonly number[]; sourceIndexes: readonly number[]; }Configuration contract for transaction. See the declaration and linked source for the exact signature.

BGridClickParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridClickParams<T>
MemberTypeDescription
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
TConfiguration contract for item. See the declaration and linked source for the exact signature.
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.

BGridPage

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPage
MemberTypeDescription
currentPage
optional
numberConfiguration contract for currentPage. See the declaration and linked source for the exact signature.
pageSize
optional
numberConfiguration contract for pageSize. See the declaration and linked source for the exact signature.
totalPages
optional
numberConfiguration contract for totalPages. See the declaration and linked source for the exact signature.
totalElements
optional
numberConfiguration contract for totalElements. See the declaration and linked source for the exact signature.
loading
optional
booleanConfiguration contract for loading. See the declaration and linked source for the exact signature.
onChange
optional
(currentPage: number, pageSize?: number) => voidConfiguration contract for onChange. See the declaration and linked source for the exact signature.
displayPaginationLength
optional
numberConfiguration contract for displayPaginationLength. See the declaration and linked source for the exact signature.
statusRender
optional
() => voidConfiguration contract for statusRender. See the declaration and linked source for the exact signature.
paginationRender
optional
() => voidConfiguration contract for paginationRender. See the declaration and linked source for the exact signature.

BGridProcessedRow

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridProcessedRow<T>
MemberTypeDescription
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
sourceIndex
required
numberConfiguration contract for sourceIndex. See the declaration and linked source for the exact signature.
rowKey
optional
React.KeyConfiguration contract for rowKey. See the declaration and linked source for the exact signature.

BGridRowChecked

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridRowChecked<T>
MemberTypeDescription
isRadio
optional
booleanConfiguration contract for isRadio. See the declaration and linked source for the exact signature.
checkedIndexes
optional
number[]Configuration contract for checkedIndexes. See the declaration and linked source for the exact signature.
checkedRowKeys
optional
React.Key[]Configuration contract for checkedRowKeys. See the declaration and linked source for the exact signature.
disabled
optional
(index: number, item: BGridDataItem<T>) => booleanConfiguration contract for disabled. See the declaration and linked source for the exact signature.
onChange
required
(checkedIndexes: number[], checkedRowKeys: React.Key[], checkedAll?: CheckedAll) => voidConfiguration contract for onChange. See the declaration and linked source for the exact signature.

CheckedAll

Public type exported for DataGrid configuration and callbacks.

export type CheckedAll = true | false | 'indeterminate';

Sort, filter, and toolbox

BGridColumnFilterConfig

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridColumnFilterConfig<T>
MemberTypeDescription
type
required
'values' | 'text' | 'number'Configuration contract for type. See the declaration and linked source for the exact signature.
caseSensitive
optional
booleanConfiguration contract for caseSensitive. See the declaration and linked source for the exact signature.
values
optional
BGridFilterValue[]Configuration contract for values. See the declaration and linked source for the exact signature.
getValue
optional
(item: BGridDataItem<T>) => unknownConfiguration contract for getValue. See the declaration and linked source for the exact signature.
predicate
optional
(params: { item: BGridDataItem<T>; value: unknown; filter: BGridFilterParam }) => booleanConfiguration contract for predicate. See the declaration and linked source for the exact signature.
formatValue
optional
(value: unknown) => React.ReactNodeConfiguration contract for formatValue. See the declaration and linked source for the exact signature.
maxValueListItems
optional
numberConfiguration contract for maxValueListItems. See the declaration and linked source for the exact signature.

BGridContextMenuItem

Public type exported for DataGrid configuration and callbacks.

export type BGridContextMenuItem<T> =
  | {
      type?: 'item';
      id: string;
      label: React.ReactNode;
      icon?: React.ReactNode;
      shortcut?: string;
      disabled?: boolean;
      onSelect: (target: BGridContextMenuTarget<T>) => void | Promise<void>;
    }
  | {
      type: 'separator';
      id: string;
    };

BGridContextMenuOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridContextMenuOptions<T>
MemberTypeDescription
enabled
optional
booleanConfiguration contract for enabled. See the declaration and linked source for the exact signature.
items
optional
(target: BGridContextMenuTarget<T>) => readonly BGridContextMenuItem<T>[]Configuration contract for items. See the declaration and linked source for the exact signature.
onOpenChange
optional
(open: boolean, target?: BGridContextMenuTarget<T>) => voidConfiguration contract for onOpenChange. See the declaration and linked source for the exact signature.

BGridContextMenuTarget

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridContextMenuTarget<T>
MemberTypeDescription
cell
required
BGridCellAddressConfiguration contract for cell. See the declaration and linked source for the exact signature.
visibleIndex
required
numberConfiguration contract for visibleIndex. See the declaration and linked source for the exact signature.
sourceIndex
required
numberConfiguration contract for sourceIndex. See the declaration and linked source for the exact signature.
rowKey
optional
React.KeyConfiguration contract for rowKey. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
columnId
required
stringConfiguration contract for columnId. See the declaration and linked source for the exact signature.
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
value
required
unknownConfiguration contract for value. See the declaration and linked source for the exact signature.

BGridDataControl

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridDataControl
MemberTypeDescription
mode
optional
'manual' | 'client'Configuration contract for mode. See the declaration and linked source for the exact signature.
multiSort
optional
booleanConfiguration contract for multiSort. See the declaration and linked source for the exact signature.
query
required
BGridDataQueryConfiguration contract for query. See the declaration and linked source for the exact signature.
onChange
required
(query: BGridDataQuery, event: BGridDataQueryChangeEvent) => voidConfiguration contract for onChange. See the declaration and linked source for the exact signature.

BGridDataQuery

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridDataQuery
MemberTypeDescription
sortParams
required
BGridSortParam[]Configuration contract for sortParams. See the declaration and linked source for the exact signature.
filterParams
required
BGridFilterParam[]Configuration contract for filterParams. See the declaration and linked source for the exact signature.

BGridDataQueryChangeEvent

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridDataQueryChangeEvent
MemberTypeDescription
type
required
'sort' | 'filter'Configuration contract for type. See the declaration and linked source for the exact signature.
columnId
required
stringConfiguration contract for columnId. See the declaration and linked source for the exact signature.
action
required
'apply' | 'clear'Configuration contract for action. See the declaration and linked source for the exact signature.

BGridFilterOperator

Public type exported for DataGrid configuration and callbacks.

export type BGridFilterOperator = 'contains' | 'equals' | 'notEquals' | 'gt' | 'gte' | 'lt' | 'lte' | 'between';

BGridFilterParam

Public type exported for DataGrid configuration and callbacks.

export type BGridFilterParam =
  | (BGridFilterParamBase & {
      type: 'values';
      values: BGridFilterValue[];
    })
  | (BGridFilterParamBase & {
      type: 'text';
      operator: 'contains' | 'equals' | 'notEquals';
      value: string;
    })
  | (BGridFilterParamBase & {
      type: 'number';
      operator: Exclude<BGridFilterOperator, 'contains'>;
      value?: number;
      min?: number;
      max?: number;
    });

BGridFilterValue

Public type exported for DataGrid configuration and callbacks.

export type BGridFilterValue = string | number | boolean | null;

BGridSearchCellParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSearchCellParams<T>
MemberTypeDescription
cell
required
BGridCellAddressConfiguration contract for cell. See the declaration and linked source for the exact signature.
visibleIndex
required
numberConfiguration contract for visibleIndex. See the declaration and linked source for the exact signature.
sourceIndex
required
numberConfiguration contract for sourceIndex. See the declaration and linked source for the exact signature.
rowKey
optional
React.KeyConfiguration contract for rowKey. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
columnId
required
stringConfiguration contract for columnId. See the declaration and linked source for the exact signature.
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
value
required
unknownConfiguration contract for value. See the declaration and linked source for the exact signature.

BGridSearchIcons

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSearchIcons
MemberTypeDescription
previous
optional
React.ReactNodeConfiguration contract for previous. See the declaration and linked source for the exact signature.
next
optional
React.ReactNodeConfiguration contract for next. See the declaration and linked source for the exact signature.
close
optional
React.ReactNodeConfiguration contract for close. See the declaration and linked source for the exact signature.

BGridSearchLabels

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSearchLabels
MemberTypeDescription
inputAriaLabel
optional
stringConfiguration contract for inputAriaLabel. See the declaration and linked source for the exact signature.
placeholder
optional
stringConfiguration contract for placeholder. See the declaration and linked source for the exact signature.
previousAriaLabel
optional
stringConfiguration contract for previousAriaLabel. See the declaration and linked source for the exact signature.
nextAriaLabel
optional
stringConfiguration contract for nextAriaLabel. See the declaration and linked source for the exact signature.
closeAriaLabel
optional
stringConfiguration contract for closeAriaLabel. See the declaration and linked source for the exact signature.
searching
optional
stringConfiguration contract for searching. See the declaration and linked source for the exact signature.
noResults
optional
stringConfiguration contract for noResults. See the declaration and linked source for the exact signature.
contextMenuItem
optional
React.ReactNodeConfiguration contract for contextMenuItem. See the declaration and linked source for the exact signature.
formatResultCount
optional
(params: { activeResult: number; totalResults: number; loadedRowCount: number; paged: boolean; }) => React.ReactNodeConfiguration contract for formatResultCount. See the declaration and linked source for the exact signature.

BGridSearchOpenReason

Public type exported for DataGrid configuration and callbacks.

export type BGridSearchOpenReason =
  | 'shortcut'
  | 'contextMenu'
  | 'external'
  | 'escape'
  | 'closeButton'
  | 'surfaceConflict';

BGridSearchOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSearchOptions<T>
MemberTypeDescription
enabled
optional
booleanConfiguration contract for enabled. See the declaration and linked source for the exact signature.
shortcut
optional
booleanConfiguration contract for shortcut. See the declaration and linked source for the exact signature.
contextMenu
optional
booleanConfiguration contract for contextMenu. See the declaration and linked source for the exact signature.
open
optional
booleanConfiguration contract for open. See the declaration and linked source for the exact signature.
defaultOpen
optional
booleanConfiguration contract for defaultOpen. See the declaration and linked source for the exact signature.
onOpenChange
optional
(open: boolean, reason: BGridSearchOpenReason) => voidConfiguration contract for onOpenChange. See the declaration and linked source for the exact signature.
query
optional
stringConfiguration contract for query. See the declaration and linked source for the exact signature.
defaultQuery
optional
stringConfiguration contract for defaultQuery. See the declaration and linked source for the exact signature.
onQueryChange
optional
(query: string) => voidConfiguration contract for onQueryChange. See the declaration and linked source for the exact signature.
getSearchText
optional
(params: BGridSearchCellParams<T>) => unknownConfiguration contract for getSearchText. See the declaration and linked source for the exact signature.
icons
optional
BGridSearchIconsConfiguration contract for icons. See the declaration and linked source for the exact signature.
labels
optional
BGridSearchLabelsConfiguration contract for labels. See the declaration and linked source for the exact signature.

BGridSortInfo

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSortInfo
MemberTypeDescription
multiSort
optional
booleanConfiguration contract for multiSort. See the declaration and linked source for the exact signature.
sortParams
required
BGridSortParam[]Configuration contract for sortParams. See the declaration and linked source for the exact signature.
onChange
required
(sortParams: BGridSortParam[]) => voidConfiguration contract for onChange. See the declaration and linked source for the exact signature.

BGridSortParam

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSortParam
MemberTypeDescription
columnId
optional
stringConfiguration contract for columnId. See the declaration and linked source for the exact signature.
key
optional
stringConfiguration contract for key. See the declaration and linked source for the exact signature.
index
optional
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
orderBy
required
'asc' | 'desc'Configuration contract for orderBy. See the declaration and linked source for the exact signature.

BGridToolboxConfig

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridToolboxConfig<T>
MemberTypeDescription
sort
optional
booleanConfiguration contract for sort. See the declaration and linked source for the exact signature.
filter
optional
booleanConfiguration contract for filter. See the declaration and linked source for the exact signature.
icons
optional
BGridToolboxIconsConfiguration contract for icons. See the declaration and linked source for the exact signature.
extraItems
optional
BGridToolboxItem<T>[]Configuration contract for extraItems. See the declaration and linked source for the exact signature.
render
optional
React.FC<BGridToolboxRenderProps<T>>Configuration contract for render. See the declaration and linked source for the exact signature.

BGridToolboxIcons

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridToolboxIcons
MemberTypeDescription
sortAsc
optional
React.ReactNodeConfiguration contract for sortAsc. See the declaration and linked source for the exact signature.
sortDesc
optional
React.ReactNodeConfiguration contract for sortDesc. See the declaration and linked source for the exact signature.
filter
optional
React.ReactNodeConfiguration contract for filter. See the declaration and linked source for the exact signature.
filterBadge
optional
React.ReactNodeConfiguration contract for filterBadge. See the declaration and linked source for the exact signature.
dropdown
optional
React.ReactNodeConfiguration contract for dropdown. See the declaration and linked source for the exact signature.
sortClear
optional
React.ReactNodeConfiguration contract for sortClear. See the declaration and linked source for the exact signature.

BGridToolboxItem

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridToolboxItem<T>
MemberTypeDescription
id
required
stringConfiguration contract for id. See the declaration and linked source for the exact signature.
label
required
React.ReactNodeConfiguration contract for label. See the declaration and linked source for the exact signature.
disabled
optional
booleanConfiguration contract for disabled. See the declaration and linked source for the exact signature.
onClick
required
(params: { column: BGridColumn<T>; columnId: string; columnIndex: number }) => voidConfiguration contract for onClick. See the declaration and linked source for the exact signature.

BGridToolboxRenderProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridToolboxRenderProps<T>
MemberTypeDescription
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
columnId
required
stringConfiguration contract for columnId. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
close
required
() => voidConfiguration contract for close. See the declaration and linked source for the exact signature.

Selection and editing

BGridCellAddress

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellAddress
MemberTypeDescription
rowIndex
required
numberConfiguration contract for rowIndex. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.

BGridCellCommitController

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellCommitController<T>
MemberTypeDescription
commit
required
(changes: readonly BGridCellValueChange<T>[], options?: BGridCommitOptions) => Promise<void>Configuration contract for commit. See the declaration and linked source for the exact signature.
cancel
required
() => voidConfiguration contract for cancel. See the declaration and linked source for the exact signature.

BGridCellEditorConfig

Public type exported for DataGrid configuration and callbacks.

export type BGridCellEditorConfig<T> = BGridTextEditorConfig<T> | BGridPluginEditorConfig<T>;

BGridCellEditSession

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellEditSession extends BGridCellInteractionSessionBase
MemberTypeDescription
kind
required
'editor'Configuration contract for kind. See the declaration and linked source for the exact signature.
mode
required
'preserve' | 'replace'Configuration contract for mode. See the declaration and linked source for the exact signature.
activation
required
BGridCellEditActivationConfiguration contract for activation. See the declaration and linked source for the exact signature.
originalValue
required
unknownConfiguration contract for originalValue. See the declaration and linked source for the exact signature.

BGridCellMoveDirection

Public type exported for DataGrid configuration and callbacks.

export type BGridCellMoveDirection =
  | 'up'
  | 'down'
  | 'left'
  | 'right'
  | 'home'
  | 'end'
  | 'pageUp'
  | 'pageDown'
  | 'first'
  | 'last'
  | 'next'
  | 'prev';

BGridCellNavigationOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellNavigationOptions
MemberTypeDescription
enabled
optional
booleanConfiguration contract for enabled. See the declaration and linked source for the exact signature.
activeCell
optional
BGridCellAddressConfiguration contract for activeCell. See the declaration and linked source for the exact signature.
defaultActiveCell
optional
BGridCellAddressConfiguration contract for defaultActiveCell. See the declaration and linked source for the exact signature.
onActiveCellChange
optional
(cell?: BGridCellAddress) => voidConfiguration contract for onActiveCellChange. See the declaration and linked source for the exact signature.
wrap
optional
booleanConfiguration contract for wrap. See the declaration and linked source for the exact signature.
editOnEnter
optional
booleanConfiguration contract for editOnEnter. See the declaration and linked source for the exact signature.
keyRepeat
optional
{ enabled?: boolean; interval?: number; }Configuration contract for keyRepeat. See the declaration and linked source for the exact signature.

BGridCellSelectionCopyError

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellSelectionCopyError
MemberTypeDescription
reason
required
BGridCellSelectionCopyErrorReasonConfiguration contract for reason. See the declaration and linked source for the exact signature.
actual
optional
numberConfiguration contract for actual. See the declaration and linked source for the exact signature.
limit
optional
numberConfiguration contract for limit. See the declaration and linked source for the exact signature.
selectedCellCount
required
numberConfiguration contract for selectedCellCount. See the declaration and linked source for the exact signature.
maxClipboardCells
required
numberConfiguration contract for maxClipboardCells. See the declaration and linked source for the exact signature.
maxClipboardTextLength
required
numberConfiguration contract for maxClipboardTextLength. See the declaration and linked source for the exact signature.
error
optional
unknownConfiguration contract for error. See the declaration and linked source for the exact signature.

BGridCellSelectionCopyErrorReason

Public type exported for DataGrid configuration and callbacks.

export type BGridCellSelectionCopyErrorReason = 'maxClipboardCells' | 'maxClipboardTextLength' | 'clipboardWriteFailed';

BGridCellSelectionRange

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellSelectionRange
MemberTypeDescription
startRowIndex
required
numberConfiguration contract for startRowIndex. See the declaration and linked source for the exact signature.
startColumnIndex
required
numberConfiguration contract for startColumnIndex. See the declaration and linked source for the exact signature.
endRowIndex
required
numberConfiguration contract for endRowIndex. See the declaration and linked source for the exact signature.
endColumnIndex
required
numberConfiguration contract for endColumnIndex. See the declaration and linked source for the exact signature.

BGridCellValueChange

Public type exported for DataGrid configuration and callbacks.

export type BGridCellValueChange<T> =
  | {
      key: BGridColumn<T>['key'];
      columnId?: never;
      value: unknown;
    }
  | {
      columnId: string;
      key?: never;
      value: unknown;
    };

BGridChangeValueParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridChangeValueParams<T> extends BGridCellCommitController<T>
MemberTypeDescription
source
required
BGridEditSourceConfiguration contract for source. See the declaration and linked source for the exact signature.
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
nextValues
required
TConfiguration contract for nextValues. See the declaration and linked source for the exact signature.
changes
required
readonly BGridCellValueChange<T>[]Configuration contract for changes. See the declaration and linked source for the exact signature.
rows
required
readonly BGridChangeValueRow<T>[]Configuration contract for rows. See the declaration and linked source for the exact signature.

BGridChangeValueRow

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridChangeValueRow<T>
MemberTypeDescription
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
sourceIndex
required
numberConfiguration contract for sourceIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
nextValues
required
TConfiguration contract for nextValues. See the declaration and linked source for the exact signature.

BGridCommitOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCommitOptions
MemberTypeDescription
move
optional
BGridCellMoveDirectionConfiguration contract for move. See the declaration and linked source for the exact signature.

BGridEditorIconClickHandler

Public type exported for DataGrid configuration and callbacks.

export type BGridEditorIconClickHandler<T> = (
  params: BGridEditorIconClickParams<T>,
) => void | (() => void) | Promise<void | (() => void)>;

BGridEditorIconClickParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridEditorIconClickParams<T> extends BGridEditorIconParams<T>, BGridCellCommitController<T>

BGridEditorIconConfig

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridEditorIconConfig<T>
MemberTypeDescription
render
required
React.ReactNode | ((params: BGridEditorIconParams<T>) => React.ReactNode)Configuration contract for render. See the declaration and linked source for the exact signature.
ariaLabel
optional
string | ((params: BGridEditorIconParams<T>) => string)Configuration contract for ariaLabel. See the declaration and linked source for the exact signature.
visibility
optional
'always' | 'hover' | 'active'Configuration contract for visibility. See the declaration and linked source for the exact signature.
onClick
optional
BGridEditorIconClickHandler<T>Configuration contract for onClick. See the declaration and linked source for the exact signature.

BGridEditorIconParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridEditorIconParams<T>
MemberTypeDescription
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
value
required
unknownConfiguration contract for value. See the declaration and linked source for the exact signature.
active
required
booleanConfiguration contract for active. See the declaration and linked source for the exact signature.

BGridEditorPluginProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridEditorPluginProps<T> extends BGridTextEditorContext<T>
MemberTypeDescription
sessionId
required
numberConfiguration contract for sessionId. See the declaration and linked source for the exact signature.
value
required
unknownConfiguration contract for value. See the declaration and linked source for the exact signature.
mode
required
'preserve' | 'replace'Configuration contract for mode. See the declaration and linked source for the exact signature.
activation
required
BGridCellEditActivationConfiguration contract for activation. See the declaration and linked source for the exact signature.
commit
required
BGridCellCommitController<T>['commit']Configuration contract for commit. See the declaration and linked source for the exact signature.
cancel
required
BGridCellCommitController<T>['cancel']Configuration contract for cancel. See the declaration and linked source for the exact signature.
move
required
(direction: BGridCellMoveDirection) => voidConfiguration contract for move. See the declaration and linked source for the exact signature.
getPortalContainer
required
() => HTMLElementConfiguration contract for getPortalContainer. See the declaration and linked source for the exact signature.

BGridEditSource

Public type exported for DataGrid configuration and callbacks.

export type BGridEditSource = 'text' | 'plugin' | 'itemRender' | 'editorIcon';

BGridEditTrigger

Public type exported for DataGrid configuration and callbacks.

export type BGridEditTrigger = 'click' | 'dblclick';

BGridMoveActiveCellOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridMoveActiveCellOptions
MemberTypeDescription
extendSelection
optional
booleanConfiguration contract for extendSelection. See the declaration and linked source for the exact signature.
toBoundary
optional
booleanConfiguration contract for toBoundary. See the declaration and linked source for the exact signature.
pageSize
optional
numberConfiguration contract for pageSize. See the declaration and linked source for the exact signature.
selectionEnabled
optional
booleanConfiguration contract for selectionEnabled. See the declaration and linked source for the exact signature.

BGridPluginEditorConfig

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPluginEditorConfig<T>
MemberTypeDescription
type
required
'plugin'Configuration contract for type. See the declaration and linked source for the exact signature.
id
required
stringConfiguration contract for id. See the declaration and linked source for the exact signature.
component
required
React.ComponentType<BGridEditorPluginProps<T>>Configuration contract for component. See the declaration and linked source for the exact signature.

BGridTextEditorConfig

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridTextEditorConfig<T>
MemberTypeDescription
type
required
'text'Configuration contract for type. See the declaration and linked source for the exact signature.
startOnInput
optional
booleanConfiguration contract for startOnInput. See the declaration and linked source for the exact signature.
commitOnBlur
optional
booleanConfiguration contract for commitOnBlur. See the declaration and linked source for the exact signature.
formatValue
optional
(value: unknown, context: BGridTextEditorContext<T>) => stringConfiguration contract for formatValue. See the declaration and linked source for the exact signature.
parseValue
optional
(text: string, context: BGridTextEditorContext<T>) => unknownConfiguration contract for parseValue. See the declaration and linked source for the exact signature.
ariaLabel
optional
string | ((context: BGridTextEditorContext<T>) => string)Configuration contract for ariaLabel. See the declaration and linked source for the exact signature.
inputProps
optional
Pick< React.InputHTMLAttributes<HTMLInputElement>, 'placeholder' | 'maxLength' | 'inputMode' | 'autoComplete' | 'spellCheck' >Configuration contract for inputProps. See the declaration and linked source for the exact signature.

BGridTextEditorContext

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridTextEditorContext<T>
MemberTypeDescription
index
required
numberConfiguration contract for index. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
item
required
BGridDataItem<T>Configuration contract for item. See the declaration and linked source for the exact signature.
values
required
TConfiguration contract for values. See the declaration and linked source for the exact signature.
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.

Layout and display

BGridCellMergeColumn

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridCellMergeColumn
MemberTypeDescription
wordWrap
optional
booleanConfiguration contract for wordWrap. See the declaration and linked source for the exact signature.
mergeBy
required
string | string[]Configuration contract for mergeBy. See the declaration and linked source for the exact signature.

BGridColumnGroup

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridColumnGroup
MemberTypeDescription
label
required
ReactNodeConfiguration contract for label. See the declaration and linked source for the exact signature.
groupStartIndex
required
numberConfiguration contract for groupStartIndex. See the declaration and linked source for the exact signature.
groupEndIndex
required
numberConfiguration contract for groupEndIndex. See the declaration and linked source for the exact signature.
align
optional
AlignDirectionConfiguration contract for align. See the declaration and linked source for the exact signature.
headerAlign
optional
AlignDirectionConfiguration contract for headerAlign. See the declaration and linked source for the exact signature.

BGridColumnGroupNode

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridColumnGroupNode
MemberTypeDescription
id
required
stringConfiguration contract for id. See the declaration and linked source for the exact signature.
label
required
ReactNodeConfiguration contract for label. See the declaration and linked source for the exact signature.
headerAlign
optional
AlignDirectionConfiguration contract for headerAlign. See the declaration and linked source for the exact signature.
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
headerStyle
optional
React.CSSPropertiesConfiguration contract for headerStyle. See the declaration and linked source for the exact signature.
children
required
Array<string | BGridColumnGroupNode>Configuration contract for children. See the declaration and linked source for the exact signature.

BGridHorizontalScrollbarOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridHorizontalScrollbarOptions extends BGridViewStyleProps
MemberTypeDescription
visible
optional
booleanConfiguration contract for visible. See the declaration and linked source for the exact signature.

BGridPaginationViewOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPaginationViewOptions extends BGridViewStyleProps
MemberTypeDescription
visible
optional
booleanConfiguration contract for visible. See the declaration and linked source for the exact signature.

BGridScrollbarOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridScrollbarOptions
MemberTypeDescription
variant
optional
BGridScrollbarVariantConfiguration contract for variant. See the declaration and linked source for the exact signature.
horizontal
optional
BGridHorizontalScrollbarOptionsConfiguration contract for horizontal. See the declaration and linked source for the exact signature.
vertical
optional
BGridVerticalScrollbarOptionsConfiguration contract for vertical. See the declaration and linked source for the exact signature.

BGridScrollbarVariant

Public type exported for DataGrid configuration and callbacks.

export type BGridScrollbarVariant = 'native' | 'classic' | 'modern';

BGridStatusContent

Public type exported for DataGrid configuration and callbacks.

export type BGridStatusContent = React.ReactNode | ((context: BGridStatusContext) => React.ReactNode);

BGridStatusContext

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridStatusContext
MemberTypeDescription
totalItems
required
numberConfiguration contract for totalItems. See the declaration and linked source for the exact signature.
visibleItems
required
numberConfiguration contract for visibleItems. See the declaration and linked source for the exact signature.
page
optional
BGridPageConfiguration contract for page. See the declaration and linked source for the exact signature.

BGridStatusOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridStatusOptions extends BGridViewStyleProps
MemberTypeDescription
visible
optional
booleanConfiguration contract for visible. See the declaration and linked source for the exact signature.
content
optional
BGridStatusContentConfiguration contract for content. See the declaration and linked source for the exact signature.

BGridSummaryColumn

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSummaryColumn<T>
MemberTypeDescription
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
align
optional
AlignDirectionConfiguration contract for align. See the declaration and linked source for the exact signature.
colSpan
optional
numberConfiguration contract for colSpan. See the declaration and linked source for the exact signature.
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
getClassName
optional
(key: string | string[]) => stringConfiguration contract for getClassName. See the declaration and linked source for the exact signature.
itemRender
optional
(props: BGridSummaryItemRenderProps<T>) => React.ReactNodeConfiguration contract for itemRender. See the declaration and linked source for the exact signature.

BGridSummaryItemRenderProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridSummaryItemRenderProps<T>
MemberTypeDescription
column
required
BGridColumn<T>Configuration contract for column. See the declaration and linked source for the exact signature.
columnIndex
required
numberConfiguration contract for columnIndex. See the declaration and linked source for the exact signature.
data
required
BGridDataItem<T>[]Configuration contract for data. See the declaration and linked source for the exact signature.

BGridVerticalScrollbarOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridVerticalScrollbarOptions extends BGridViewStyleProps
MemberTypeDescription
visible
optional
booleanConfiguration contract for visible. See the declaration and linked source for the exact signature.

BGridViewStyleProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridViewStyleProps
MemberTypeDescription
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
style
optional
React.CSSPropertiesConfiguration contract for style. See the declaration and linked source for the exact signature.

Reordering

BGridReorderInfo

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridReorderInfo<T>
MemberTypeDescription
enabled
optional
booleanConfiguration contract for enabled. See the declaration and linked source for the exact signature.
handleIcon
optional
React.ReactNodeConfiguration contract for handleIcon. See the declaration and linked source for the exact signature.
onReorder
optional
(data: BGridDataItem<T>[]) => void | booleanConfiguration contract for onReorder. See the declaration and linked source for the exact signature.

BGridReorderingInfo

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridReorderingInfo
MemberTypeDescription
fromIndex
optional
numberConfiguration contract for fromIndex. See the declaration and linked source for the exact signature.
toIndex
optional
numberConfiguration contract for toIndex. See the declaration and linked source for the exact signature.
phase
optional
'dragging' | 'settling' | 'cancelling'Configuration contract for phase. See the declaration and linked source for the exact signature.
input
optional
'pointer' | 'keyboard'Configuration contract for input. See the declaration and linked source for the exact signature.

Pivot

BGridPivotAggregate

Public type exported for DataGrid configuration and callbacks.

export type BGridPivotAggregate<T> =
  | 'sum'
  | 'count'
  | 'avg'
  | 'min'
  | 'max'
  | 'first'
  | ((params: BGridPivotAggregateParams<T>) => any);

BGridPivotAggregateParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotAggregateParams<T>
MemberTypeDescription
values
required
any[]Configuration contract for values. See the declaration and linked source for the exact signature.
items
required
BGridDataItem<T>[]Configuration contract for items. See the declaration and linked source for the exact signature.
rowValues
required
any[]Configuration contract for rowValues. See the declaration and linked source for the exact signature.
columnValues
required
any[]Configuration contract for columnValues. See the declaration and linked source for the exact signature.
value
required
BGridPivotValue<T>Configuration contract for value. See the declaration and linked source for the exact signature.

BGridPivotField

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotField
MemberTypeDescription
key
required
string | string[]Configuration contract for key. See the declaration and linked source for the exact signature.
label
optional
ReactNodeConfiguration contract for label. See the declaration and linked source for the exact signature.
width
optional
numberConfiguration contract for width. See the declaration and linked source for the exact signature.
align
optional
AlignDirectionConfiguration contract for align. See the declaration and linked source for the exact signature.
headerAlign
optional
AlignDirectionConfiguration contract for headerAlign. See the declaration and linked source for the exact signature.
className
optional
stringConfiguration contract for className. See the declaration and linked source for the exact signature.
headerClassName
optional
stringConfiguration contract for headerClassName. See the declaration and linked source for the exact signature.
headerStyle
optional
React.CSSPropertiesConfiguration contract for headerStyle. See the declaration and linked source for the exact signature.

BGridPivotOptions

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotOptions<T>
MemberTypeDescription
enabled
optional
booleanConfiguration contract for enabled. See the declaration and linked source for the exact signature.
rows
required
BGridPivotField[]Configuration contract for rows. See the declaration and linked source for the exact signature.
columns
required
BGridPivotField[]Configuration contract for columns. See the declaration and linked source for the exact signature.
values
required
BGridPivotValue<T>[]Configuration contract for values. See the declaration and linked source for the exact signature.
columnLabelSeparator
optional
stringConfiguration contract for columnLabelSeparator. See the declaration and linked source for the exact signature.
emptyValue
optional
ReactNodeConfiguration contract for emptyValue. See the declaration and linked source for the exact signature.

BGridPivotValue

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotValue<T> extends BGridPivotField
MemberTypeDescription
aggregate
optional
BGridPivotAggregate<T>Configuration contract for aggregate. See the declaration and linked source for the exact signature.
itemRender
optional
React.FC<BGridPivotValueItemRenderProps<T>>Configuration contract for itemRender. See the declaration and linked source for the exact signature.
getClipboardText
optional
(params: BGridPivotValueClipboardTextParams<T>) => anyConfiguration contract for getClipboardText. See the declaration and linked source for the exact signature.

BGridPivotValueClipboardTextParams

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotValueClipboardTextParams<T> extends Omit<BGridCellClipboardTextParams<Record<string, any>>, 'column'>,
    BGridPivotValueContext<T>
MemberTypeDescription
column
required
BGridColumn<Record<string, any>>Configuration contract for column. See the declaration and linked source for the exact signature.

BGridPivotValueContext

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotValueContext<T>
MemberTypeDescription
sourceItems
required
BGridDataItem<T>[]Configuration contract for sourceItems. See the declaration and linked source for the exact signature.
rowValues
required
any[]Configuration contract for rowValues. See the declaration and linked source for the exact signature.
columnValues
required
any[]Configuration contract for columnValues. See the declaration and linked source for the exact signature.
pivotValue
required
BGridPivotValue<T>Configuration contract for pivotValue. See the declaration and linked source for the exact signature.
aggregate
optional
BGridPivotAggregate<T>Configuration contract for aggregate. See the declaration and linked source for the exact signature.

BGridPivotValueItemRenderProps

interfacesource ↗

Public interface exported for DataGrid configuration and callbacks.

export interface BGridPivotValueItemRenderProps<T> extends Omit<BGridItemRenderProps<Record<string, any>>, 'column'>,
    BGridPivotValueContext<T>
MemberTypeDescription
column
required
BGridColumn<Record<string, any>>Configuration contract for column. See the declaration and linked source for the exact signature.