Skip to content

charton API


charton API / @chart-on/ui / index / showShortcut

Function: showShortcut() ​

showShortcut(target, chart, id): () => void

Defined in: ui/src/shortcuts.ts:23

Keep a control's tooltip (the action's label and its first shortcut) and aria-keyshortcuts in step with an action on chart.actions, e.g. a symbol header button with 'symbol-search'. Returns a function that stops.

Parameters ​

target ​

HTMLElement

chart ​

Chart

id ​

string

Returns ​

() => void