Class. Command Palette
protected
autoCompleteResult:AutocompleteResult
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:51
protected
containerElement:HTMLElement
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:47
AbstractUIExtension
.containerElement
protected
optional
contextActions:LabeledAction
[]
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:53
protected
debounceWaitMs:number
=100
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:46
protected
defaultWidth:number
=400
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:45
protected
domHelper:DOMHelper
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:58
protected
inputElement:HTMLInputElement
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:49
protected
loadingIndicator:HTMLSpanElement
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:50
protected
loadingIndicatorClasses:string
[]
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:42
protected
logger:ILogger
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:45
protected
mousePositionTracker:MousePositionTracker
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:59
protected
noCommandsMsg:string
="No commands available"
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:47
protected
options:ViewerOptions
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:44
protected
paletteIndex:number
=0
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:52
protected
viewerOptions:ViewerOptions
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:57
protected
xOffset:number
=20
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:43
protected
yOffset:number
=20
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:44
readonly
static
ID:"command-palette"
="command-palette"
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:39
protected
autocompleteSettings(root
):AutocompleteSettings
<LabeledAction
>
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:114
Readonly
<SModelRootImpl
>
AutocompleteSettings
<LabeledAction
>
containerClass():
string
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:62
string
AbstractUIExtension
.containerClass
protected
customizeSuggestionContainer(container
,inputRect
,maxHeight
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:208
HTMLDivElement
DOMRect
| ClientRect
number
void
protected
cycle():void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:91
void
protected
cylceIfInvokePaletteKey(event
):any
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:87
KeyboardEvent
any
protected
executeAction(input
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:223
LabeledAction
| Action
| Action
[]
void
protected
filterActions(filterText
,actions
):LabeledAction
[]
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:200
string
protected
getCodicon(iconId
):string
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:196
string
string
protected
getFontAwesomeIcon(iconId
):string
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:192
string
string
protected
getOrCreateContainer(baseDivId
):HTMLElement
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:89
string
HTMLElement
AbstractUIExtension
.getOrCreateContainer
hide():
void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:216
void
protected
hideIfEscapeEvent(event
):any
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:83
KeyboardEvent
any
id():
string
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:61
string
protected
initialize():boolean
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:75
boolean
AbstractUIExtension
.initialize
protected
initializeContents(containerElement
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:73
Initializes the contents of this UI extension.
Subclasses must implement this method to initialize the UI elements of this UI extension inside the specified containerElement
.
HTMLElement
void
AbstractUIExtension
.initializeContents
protected
onBeforeShow(containerElement
,root
, …selectedElementIds
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:96
Updates the containerElement
under the given context
before it becomes visible.
Subclasses may override this method to, for instance, modifying the position of the
containerElement
, add or remove elements, etc. depending on the specified root
or contextElementIds
.
HTMLElement
Readonly
<SModelRootImpl
>
…string
[]
void
AbstractUIExtension
.onBeforeShow
protected
onLoaded(success
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:167
"success"
| "error"
void
protected
onLoading():void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:158
void
protected
onSelect(item
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:133
void
protected
renderIcon(itemElement
,iconId
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:188
HTMLDivElement
string
void
protected
renderLabeledActionSuggestion(item
,value
):HTMLDivElement
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:173
string
HTMLDivElement
protected
restoreFocus():void
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:68
void
AbstractUIExtension
.restoreFocus
protected
setContainerVisible(visible
):void
Defined in: packages/sprotty/src/base/ui-extensions/ui-extension.ts:99
boolean
void
AbstractUIExtension
.setContainerVisible
show(
root
, …contextElementIds
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:64
Readonly
<SModelRootImpl
>
…string
[]
void
protected
updateAutoCompleteActions(update
,text
,root
):void
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:138
(items
) => void
string
Readonly
<SModelRootImpl
>
void
readonly
static
isInvokePaletteKey(event
):boolean
Defined in: packages/sprotty/src/features/command-palette/command-palette.ts:40
KeyboardEvent
boolean