Home Reference Source
import CommandPallete from './ui/dialogs/commandpalette.js'
public class | source

CommandPallete

show a searchable command palette (cmd/ctrl+p)

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

keyDown: *

Private Members
private
private
private

_cursorIndex: number

private

_defaultIcon: string

private

_findTimeoutId: number

private

_lastSearch: string

private

_numResults: number

Method Summary

Public Methods
public

addDynamic(category: *, title: *, func: *, icon: *): *

public

addResult(cmd: *, num: *, idx: *): *

public

close()

public

doSearch(str: *, searchId: *)

public

getBookmarkIconForCmd(cmdName: *): *

public

isCmdInSidebar(cmdName: *): *

public

isVisible(): *

public

navigate(dir: *)

public
public

onResultClick(ev: *)

public

removeDynamic(id: *)

public

show()

Public Constructors

public constructor() source

Public Members

public dynamicCmds: *[] source

public keyDown: * source

Private Members

private _bookmarkActiveIcon: string source

private _bookmarkInactiveIcon: string source

private _cursorIndex: number source

private _defaultIcon: string source

private _findTimeoutId: number source

private _lastSearch: string source

private _numResults: number source

Public Methods

public addDynamic(category: *, title: *, func: *, icon: *): * source

Params:

NameTypeAttributeDescription
category *
title *
func *
icon *

Return:

*

public addResult(cmd: *, num: *, idx: *): * source

Params:

NameTypeAttributeDescription
cmd *
num *
idx *

Return:

*

public close() source

public doSearch(str: *, searchId: *) source

Params:

NameTypeAttributeDescription
str *
searchId *

public getBookmarkIconForCmd(cmdName: *): * source

Params:

NameTypeAttributeDescription
cmdName *

Return:

*

public isCmdInSidebar(cmdName: *): * source

Params:

NameTypeAttributeDescription
cmdName *

Return:

*

public isVisible(): * source

Return:

*

public navigate(dir: *) source

Params:

NameTypeAttributeDescription
dir *

public onBookmarkIconClick(ev: *) source

Params:

NameTypeAttributeDescription
ev *

public onResultClick(ev: *) source

Params:

NameTypeAttributeDescription
ev *

public removeDynamic(id: *) source

Params:

NameTypeAttributeDescription
id *

public show() source