본문으로 건너뛰기

@topgrid/grid-pro-panel

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

자동 생성

이 페이지는 소스 코드의 TSDoc 주석에서 자동 생성됩니다(내부 표식 정제). 큐레이트된 시작용 요약은 API 레퍼런스 참고.

16개 public export — 함수 1 · 훅 0 · 컴포넌트 5 · 타입 10 · 상수 0.

컴포넌트

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

함수

statusBarCounts

table 에서 total/filtered/selected 카운트를 읽어 StatusBarItem[] 생성.

statusBarCounts(table: Table<TData>, labels: StatusBarCountLabels): StatusBarItem[]
파라미터타입설명
tableTable<TData>TanStack Table 인스턴스.
labelsStatusBarCountLabels세그먼트 라벨 override(부분).

타입 · 인터페이스

FiltersToolPanelColumn

One column's filter row in FiltersToolPanel.

속성타입설명
idstringColumn id.
labelstringHuman-readable label.
valuestringCurrent filter value (empty string = inactive).

FiltersToolPanelProps

Props for FiltersToolPanel.

속성타입설명
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.

속성타입설명
contentReactNodePanel body (e.g. a ToolPanel).
idstringStable panel id.
titlestringHeader label.

SideBarProps

Props for SideBar.

속성타입설명
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

카운트 세그먼트 라벨 override(미지정 시 한국어 기본).

속성타입설명
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.

속성타입설명
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.

속성타입설명
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.

속성타입설명
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.

속성타입설명
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>