Documentation

@kanunilabs/pivotgrid-react-enterprise


@kanunilabs/pivotgrid-react-enterprise / ChartWindowProps

Interface: ChartWindowProps

Properties

children

children: ReactNode

The chart. ChartFactory fills the window's body.


className?

optional className?: string


defaultRect?

optional defaultRect?: FrameRect

Where it opens: px, relative to the parent, top-left corner first. Without it the window opens centred, 640 × 380 or as much of that as fits. Read once; after that the window is the user's to move.


labels?

optional labels?: Partial<ChartWindowLabels>

Accessible names, English by default.


onClose?

optional onClose?: () => void

Shows a close button in the title bar.

Returns

void


onRectChange?

optional onRectChange?: (rect) => void

Each finished move or resize — keep it to open the window there next time.

Parameters

rect

FrameRect

Returns

void


title?

optional title?: ReactNode

Caption in the title bar.


toolbar?

optional toolbar?: ReactNode

Extra controls in the title bar, after the title: a type picker, export buttons…