KeyboardShortcutPillsWidget
Extends
Component<KeyboardShortcutPillsWidgetProps>
Constructors
Constructor
new KeyboardShortcutPillsWidget(props): KeyboardShortcutPillsWidget;
Parameters
| Parameter | Type |
|---|---|
props | KeyboardShortcutPillsWidgetProps |
Returns
KeyboardShortcutPillsWidget
Inherited from
React.Component<KeyboardShortcutPillsWidgetProps>.constructor
Constructor
new KeyboardShortcutPillsWidget(props, context): KeyboardShortcutPillsWidget;
Parameters
| Parameter | Type | Description |
|---|---|---|
props | KeyboardShortcutPillsWidgetProps | - |
context | any | value of the parent Context specified in contextType. |
Returns
KeyboardShortcutPillsWidget
Inherited from
React.Component<KeyboardShortcutPillsWidgetProps>.constructor
Methods
getKeyboardStroke()
getKeyboardStroke(keys, index): Element;
Parameters
| Parameter | Type |
|---|---|
keys | ShortcutKey[] |
index | number |
Returns
Element
getKeyLabel()
getKeyLabel(key): string;
Parameters
| Parameter | Type |
|---|---|
key | ShortcutKey |
Returns
string
render()
render(): Element;
Returns
Element
Overrides
React.Component.render