Skip to main content

@topgrid/grid-pro-panel

Pro: declarative grid chrome — StatusBar, ToolPanel (column visibility/order), and a reused drag-grouping RowGroupPanel · Commercial (EULA)

Auto-generated

This page is auto-generated from the source code's TSDoc comments (internal markers scrubbed). For the curated getting-started summary, see the API Reference.

16 public exports — 1 functions · 0 hooks · 5 components · 10 types · 0 constants.

Components

FiltersToolPanel

FiltersToolPanel — unified column-filter editing surface with an active-filter count. Callback-only (no grid state). Pro watermark composited when unlicensed (root is relative).

FiltersToolPanel(__namedParameters: FiltersToolPanelProps): Element

RowGroupPanel

RowGroupPanel — the drag-and-drop grouping bar.

REUSE: all grouping behaviour (HTML5 drag, chips, remove) is delegated to the agg GroupPanel; this wrapper only composites the Pro watermark. The root is relative so the absolutely positioned <Watermark> anchors to it.

RowGroupPanel(props: RowGroupPanelProps<TData>): Element

SideBar — accordion container for tool panels. One section open at a time; clicking an open section's header collapses it. Pro watermark composited when unlicensed (root is relative).

SideBar(__namedParameters: SideBarProps): Element

StatusBar

StatusBar — a horizontal bar of label: value segments.

Pure prop-driven UI: the consumer passes whatever items it wants to surface (selection counts, aggregate summaries, etc.). It composites no grid. Without a valid Pro license a watermark is composited over the bar (the root is relative so the absolutely positioned <Watermark> anchors to it).

StatusBar(__namedParameters: StatusBarProps): Element

ToolPanel

ToolPanel — a declarative column visibility / order control surface.

A checkbox per column toggles visibility (onVisibilityChange); optional up/down buttons request a reorder (onReorder). The panel holds no column state machine of its own — it emits callbacks the consumer applies to its grid-core columnVisibility / columnOrder state. It composites no grid.

Without a valid Pro license a watermark is composited over the panel (the root is relative so the absolutely positioned <Watermark> anchors to it).

ToolPanel(__namedParameters: ToolPanelProps): Element

Functions

statusBarCounts

Reads total/filtered/selected counts from the table and produces StatusBarItem[].

statusBarCounts(table: Table<TData>, labels: StatusBarCountLabels): StatusBarItem[]
ParameterTypeDescription
tableTable<TData>TanStack Table instance.
labelsStatusBarCountLabelsSegment label overrides (partial).

Types & Interfaces

FiltersToolPanelColumn

One column's filter row in FiltersToolPanel.

PropertyTypeDescription
idstringColumn id.
labelstringHuman-readable label.
valuestringCurrent filter value (empty string = inactive).

FiltersToolPanelProps

Props for FiltersToolPanel.

PropertyTypeDescription
className?stringAdditional className appended to the root container.
columnsFiltersToolPanelColumn[]Columns with their current filter values, in display order.
emptyText?stringText shown when there are no columns.
onClearAll?(…) => …Optional — when provided, a "Clear all" button clears every filter.
onFilterChange(…) => …Fired when a column's filter input changes.

SideBarPanelDef

One panel section in a SideBar.

PropertyTypeDescription
contentReactNodePanel body (e.g. a ToolPanel).
idstringStable panel id.
titlestringHeader label.

SideBarProps

Props for SideBar.

PropertyTypeDescription
className?stringAdditional className appended to the root container.
defaultOpenId?stringInitially open panel id (default: the first panel).
panelsSideBarPanelDef[]Panels rendered as accordion sections, in order.

StatusBarCountLabels

Count segment label overrides (Korean defaults when unspecified).

PropertyTypeDescription
filtered?string
selected?string
total?string

StatusBarItem

A single segment rendered by StatusBar.

The consumer injects these (e.g. selection counts or aggregate summaries); the bar is purely presentational and is not coupled to any grid state.

PropertyTypeDescription
keystringStable React key / identifier for the segment.
label?stringOptional label rendered before the value (e.g. Selected).
valueReactNodeValue rendered for the segment (e.g. a count or formatted summary).

StatusBarProps

Props for StatusBar.

PropertyTypeDescription
className?stringAdditional className appended to the root container.
itemsStatusBarItem[]Segments to render, left-to-right, as label: value pairs.

ToolPanelColumn

Describes one column row in a ToolPanel.

This is a plain, self-contained shape — the panel imports no grid-core state. The consumer maps its grid-core columnVisibility / columnOrder state into these rows and applies the emitted callbacks back onto that state.

PropertyTypeDescription
canHide?booleanWhen false, the visibility checkbox is disabled (column cannot be hidden).
idstringColumn id (matches the grid's column id).
labelstringHuman-readable label rendered next to the checkbox.
visiblebooleanWhether the column is currently visible.

ToolPanelProps

Props for ToolPanel.

PropertyTypeDescription
className?stringAdditional className appended to the root container.
columnsToolPanelColumn[]Columns to list, in display order.
onColumnDrop?(…) => …Optional. When provided, rows become drag-to-reorder: dropping sourceId onto targetId fires this (insert-before semantics — pair with grid-core reorderColumnOrder). The panel holds NO drag state of its own; the consumer feeds the reordered columns back. Coexists with the onReorder buttons.
onReorder?(…) => …Optional. When provided, up/down buttons render per row and fire this with the requested move direction. The consumer reorders its columnOrder.
onVisibilityChange(…) => …Fired when a column's visibility checkbox is toggled.

RowGroupPanelProps

Props for RowGroupPanel — identical to the reused agg GroupPanel.

type RowGroupPanelProps = GroupPanelProps<TData>