Skip to content

components/bits/PageActionsBar#

AppBarRunButton()#

function AppBarRunButton(props): null;

Registers the page's Run action with the top bar, which draws the button itself; renders nothing. Accepts the AppBarButton and AdaptiveButton props plugins already pass, and ignores all but pageLabel and onRun.

Parameters#

Parameter Type
props { onPress?: () => void; onRun?: () => void; pageLabel: string; textLong?: string; textShort?: string; tooltipPos?: string; } & Omit<AdaptiveButtonProps, "label" | "onClick"> & { label?: string; }

Returns#

null


~~ButtonWithHint()~~#

function ButtonWithHint(props): Element;

Parameters#

Parameter Type
props { children: ReactNode; shortcut?: string; sx?: object; }
props.children ReactNode
props.shortcut? string
props.sx? object

Returns#

Element

Deprecated#

Use AdaptiveButton with shortcutHint prop directly. Kept for backward compatibility during migration.


PageActionsBar()#

function PageActionsBar(props): any;

Registers the page's Save, Save As, Open and New actions with the top bar's File menu, which draws them; renders nothing. Button text and tooltips in the specs are not drawn.

Parameters#

Parameter Type
props PageActionsBarProps

Returns#

any


ButtonSpec#

Properties#

disabled?#

optional disabled?: boolean;

icon?#

optional icon?: any;

onClick?#

optional onClick?: MouseEventHandler<HTMLButtonElement>;

text#

text: string;

textShort?#

optional textShort?: string;

tooltip#

tooltip: string;

PageActionsBarProps#

Properties#

new?#

optional new?: ButtonSpec;

onNewShortcut?#

optional onNewShortcut?: () => void;
Returns#

void

onSaveShortcut?#

optional onSaveShortcut?: () => void;

Override keyboard shortcut when it differs from button onClick

Returns#

void

open?#

optional open?: ButtonSpec;

pageLabel#

pageLabel: string;

save?#

optional save?: ButtonSpec;

saveAs?#

optional saveAs?: ButtonSpec;