@kanunilabs/pivotgrid / PivotGridVanillaConfig
Interface: PivotGridVanillaConfig<TRow>
The vanilla configuration surface.
Mirrors BasePivotGridProps minus the React mechanics: no render props, no
ref — the returned instance IS the ref. Core's generics are deliberately
re-bindable (that is why they exist); the vanilla layer binds templates to
string | Node and events to native MouseEvent in M2 when the painters
land.
Type Parameters
TRow
TRow = unknown
Properties
advancedExport?
optionaladvancedExport?:boolean
Enterprise slots (K3): the Community renderer opens the sockets, the
Enterprise package fills them. advancedExport also seeds the core
edition gate, exactly like the React advancedExport prop.
chartIntegrationOptions?
optionalchartIntegrationOptions?:VanillaChartIntegrationOptions
Chart bridge (the React usePivotChartSync contract, subscription-shaped).
className?
optionalclassName?:string
Extra class on the root element.
customContextMenuItems?
optionalcustomContextMenuItems?: (field) =>VanillaContextMenuItem[] |undefined
Extra items appended to a field's context menu (the React
customContextMenuItems prop). The React icon is a ReactNode; here it
is a factory returning a DOM node, so icon: () => icon('star', 14).
Parameters
field
PivotField<TRow>
Returns
VanillaContextMenuItem[] | undefined
data
data:
TRow[]
dictionary?
optionaldictionary?:Partial<PivotDictionary>
disabled?
optionaldisabled?:boolean
fields?
optionalfields?:PivotField<TRow,PivotCellTemplate,any>[]
Controlled fields — same semantics as the React fields prop.
gridId?
optionalgridId?:string
initialFields?
optionalinitialFields?:PivotField<TRow,PivotCellTemplate,any>[]
keyboardNavigation?
optionalkeyboardNavigation?:object
enabled
enabled:
boolean
layout?
optionallayout?:PivotLayoutState
Controlled layout — same semantics as the React layout prop.
locale?
optionallocale?:PivotLocale
onAddCalculatedField?
optionalonAddCalculatedField?: () =>void
The Enterprise sockets themselves, as plain callbacks — the vanilla shape
of React's renderCalculatedFieldModal / renderPrefilterBuilder render
props and its onToggleChart. Each one, when present, makes the footer
draw the matching button (the designer's, the prefilter's, the chart's)
and the field menu offer "Edit calculation" on calculated fields; absent,
nothing is drawn, so a Community grid stays exactly as it was.
@kanunilabs/pivotgrid-enterprise fills all four; an app may fill any.
Returns
void
onAfterPivotCalculate?
optionalonAfterPivotCalculate?: (result) =>void
Parameters
result
Returns
void
onBeforePivotCalculate?
optionalonBeforePivotCalculate?: () =>void
Returns
void
onCellClick?
optionalonCellClick?: (e) =>void
Parameters
e
Returns
void
onCellPrepared?
optionalonCellPrepared?: (e) =>void
Per-cell hook before a data/header cell hits the DOM — mutate cellConfig.
Parameters
e
Returns
void
onChartStateLoaded?
optionalonChartStateLoaded?: (chartState) =>void
Parameters
chartState
any
Returns
void
onChartSync?
optionalonChartSync?: (result) =>void
Parameters
result
Returns
void
onEditCalculatedField?
optionalonEditCalculatedField?: (field) =>void
Parameters
field
PivotField<TRow>
Returns
void
onError?
optionalonError?: (error) =>void
Parameters
error
Error
Returns
void
onExporting?
optionalonExporting?: (e) =>void
Parameters
e
ExportingEvent
Returns
void
onFieldMove?
optionalonFieldMove?: (e) =>void|Promise<void>
Parameters
e
FieldMoveEvent
Returns
void | Promise<void>
onFieldsChange?
optionalonFieldsChange?: (fields) =>void
Parameters
fields
PivotField<TRow, PivotCellTemplate, any>[]
Returns
void
onGlobalContextMenu?
optionalonGlobalContextMenu?: (x,y) =>void
Right-click on data cells / non-expandable row cells (viewport coords).
Parameters
x
number
y
number
Returns
void
onImportData?
optionalonImportData?: (data) =>void
Parameters
data
TRow[]
Returns
void
onLayoutChange?
optionalonLayoutChange?: (layout) =>void
Parameters
layout
Returns
void
onOpenPrefilter?
optionalonOpenPrefilter?: () =>void
Returns
void
onRefresh?
optionalonRefresh?: () =>void
Returns
void
onToggleChart?
optionalonToggleChart?: () =>void
Returns
void
previewImport?
optionalpreviewImport?:boolean
registry?
optionalregistry?:PivotEngineRegistry
rtl?
optionalrtl?:boolean
stateStoring?
optionalstateStoring?:PivotStateStoringConfig
striped?
optionalstriped?:boolean
theme?
optionaltheme?:PivotTheme
toolbar?
optionaltoolbar?:PivotToolbarConfig
upgradeUrl?
optionalupgradeUrl?:string
workerUrl?
optionalworkerUrl?:string|URL