ShortcutApi

View as Markdown

Keyboard shortcuts that change a cell value.

TypeScript
export interface

Methods

MethodReturnsDescription
addShortcut(shortcut)ShortcutAdds new Shortcut to the state
deleteShortcut(shortcut)voidDeletes Shortcut from the state
editShortcut(shortcut)ShortcutEdits Shortcut in state
getActiveShortcuts()Shortcut[]Gets all active (not-suspended) Shortcuts in Adaptable State
getShortcutById(id)ShortcutRetrieves Shortcut by Id
getShortcutByName(name)Shortcut | undefinedRetrieves a Shortcut by its Name
getShortcuts()Shortcut[]Gets all Shortcuts in Adaptable State
getShortcutState()ShortcutStateRetrieves Shortcut section from Adaptable State
getSuspendedShortcuts()Shortcut[]Gets all suspended Shortcuts in Adaptable State
openShortcutSettingsPanel()voidOpens Settings Panel with Shortcut section selected and visible
suspendAllShortcut()voidSuspends all Shortcuts
suspendShortcut(shortcut)ShortcutSuspends Shortcut definition
unSuspendAllShortcut()voidActivates all suspended Shortcut
unSuspendShortcut(shortcut)ShortcutActivates a suspended Shortcut definition

Method Details

addShortcut

Adds new Shortcut to the state

TypeScript
addShortcut(shortcut: Shortcut): Shortcut;
Parameters
ParameterTypeDescription
shortcutShortcutShortcut to add
Returns

shortcut

Shortcut

deleteShortcut

Deletes Shortcut from the state

TypeScript
deleteShortcut(shortcut: Shortcut): void;
Parameters
ParameterTypeDescription
shortcutShortcutShortcut to delete
Returns

void

editShortcut

Edits Shortcut in state

TypeScript
editShortcut(shortcut: Shortcut): Shortcut;
Parameters
ParameterTypeDescription
shortcutShortcutShortcut to edit
Returns

The shortcut after it is saved

Shortcut

getActiveShortcuts

Gets all active (not-suspended) Shortcuts in Adaptable State

TypeScript
getActiveShortcuts(): Shortcut[];
Returns

shortcuts

Shortcut[]

getShortcutById

Retrieves Shortcut by Id

TypeScript
getShortcutById(id: Shortcut['Uuid']): Shortcut;
Parameters
ParameterTypeDescription
idShortcut['Uuid']Shortcut id
Returns

shortcut

Shortcut

getShortcutByName

Retrieves a Shortcut by its Name

TypeScript
getShortcutByName(name: string): Shortcut | undefined;
Parameters
ParameterTypeDescription
namestringName of the Shortcut
Returns

Shortcut or undefined if not found

Shortcut | undefined

getShortcuts

Gets all Shortcuts in Adaptable State

TypeScript
getShortcuts(): Shortcut[];
Returns

shortcuts

Shortcut[]

getShortcutState

Retrieves Shortcut section from Adaptable State

TypeScript
getShortcutState(): ShortcutState;
Returns

Shortcut section from Adaptable State

ShortcutState

getSuspendedShortcuts

Gets all suspended Shortcuts in Adaptable State

TypeScript
getSuspendedShortcuts(): Shortcut[];
Returns

shortcuts

Shortcut[]

openShortcutSettingsPanel

Opens Settings Panel with Shortcut section selected and visible

TypeScript
openShortcutSettingsPanel(): void;
Returns

void

suspendAllShortcut

Suspends all Shortcuts

TypeScript
suspendAllShortcut(): void;
Returns

void

suspendShortcut

Suspends Shortcut definition

TypeScript
suspendShortcut(shortcut: Shortcut): Shortcut;
Parameters
ParameterTypeDescription
shortcutShortcutShortcut to suspend
Returns

shortcut

Shortcut

unSuspendAllShortcut

Activates all suspended Shortcut

TypeScript
unSuspendAllShortcut(): void;
Returns

void

unSuspendShortcut

Activates a suspended Shortcut definition

TypeScript
unSuspendShortcut(shortcut: Shortcut): Shortcut;
Parameters
ParameterTypeDescription
shortcutShortcutShortcut to suspend
Returns

shortcut

Shortcut