Skip to content

components/bits/PageActionsBar#

AppBarRunButton()#

function AppBarRunButton(props): Element;

Accepts both old AppBarButton props (textLong/textShort/tooltipPos) and new AdaptiveButton props (label/labelShort/tooltipPlacement) for backward compatibility during migration.

Parameters#

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

Returns#

Element


~~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): Element;

Parameters#

Parameter Type
props PageActionsBarProps

Returns#

Element


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;