components/bits/PageActionsBar#
AppBarRunButton()#
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()~~#
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()#
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?#
icon?#
onClick?#
text#
textShort?#
tooltip#
PageActionsBarProps#
Properties#
new?#
onNewShortcut?#
Returns#
void
onSaveShortcut?#
Override keyboard shortcut when it differs from button onClick
Returns#
void