NgDocCommandPaletteComponent
The search palette: a search field with scopes (all, guides, API and actions), a list of results grouped by type (guides first, then the API), a preview of the selected result and the switch for single-key shortcuts. The navbar search opens it with Command+K (Control+K) or the slash key.
- Decorators
@Component - Selectors
ng-doc-command-palette
@Component ({ … })
export class NgDocCommandPaletteComponent { … }Members
Constructor1 | |||||||
() | — | ||||||
Signature | |||||||
Properties14 | |||||||
active: | — | ||||||
emptyMessage: | — | ||||||
failed: | — | ||||||
model: | — | ||||||
query: | — | ||||||
rows: | — | ||||||
| — | |||||||
scopes: | — | ||||||
| — | |||||||
searching: | — | ||||||
sections: | — | ||||||
selected: | — | ||||||
shortcuts: | — | ||||||
status: | What the status region announces: the scope, a running search, no results or a failure. | ||||||
Methods6 | |||||||
(…): void | Opens the given result: navigates to a page or runs an action. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Selects the result under the pointer, without scrolling the list. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Handles the keys of the search field: the arrow keys move the selection and Enter opens the selected result. Keys that compose text in an input method editor are left alone. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Handles the keys of the scope tabs: the arrow keys, Home and End select and focus a scope. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Keeps Tab inside the palette: from its last tab stop focus wraps to the search field, and Shift+Tab from the search field goes to the last tab stop. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Selects a scope by click and returns the focus to the search field. | ||||||
Signature Parameters
Returns void | |||||||