SearchProvider | @jupyterlab (original) (raw)
Type Parameters
Hierarchy (View Summary)
- SearchProvider
Implements
Index
Constructors
constructor
Returns SearchProvider<T>
Properties
Protected
_filtersChanged
Protected
_stateChanged
Protected
widget
widget: T
Accessors
currentMatchIndex
- get currentMatchIndex(): null | number
Returns null | number
filtersChanged
isDisposed
- get isDisposed(): boolean
Returns boolean
Abstract
isReadOnly
- get isReadOnly(): boolean
Returns boolean
matchesCount
- get matchesCount(): null | number
Returns null | number
stateChanged
Methods
Abstract
clearHighlight
dispose
- dispose(): void
Returns void
Abstract
endQuery
getFilters
The filters.
Notes
TODO For now it only supports boolean filters (represented with checkboxes)
getInitialQuery
- getInitialQuery(): string
Returns string
Initial value used to populate the search box.
Abstract
highlightNext
- highlightNext(): Promise<undefined | ISearchMatch>
Promise<undefined | ISearchMatch>
Returns
The next match if available
Abstract
highlightPrevious
- highlightPrevious(): Promise<undefined | ISearchMatch>
Promise<undefined | ISearchMatch>
Returns
The previous match if available.
Abstract
replaceAllMatches
- replaceAllMatches(newText: string, options?: IReplaceOptions): Promise<boolean>
Promise<boolean>
Returns
A promise that resolves with a boolean indicating whether a replace occurred.
Abstract
replaceCurrentMatch
- replaceCurrentMatch(
newText: string,
loop?: boolean,
options?: IReplaceOptions,
): Promise<boolean> Parameters
- newText: string
Optional
loop: booleanOptional
options: IReplaceOptions
Returns Promise<boolean>
A promise that resolves with a boolean indicating whether a replace occurred.
Abstract
startQuery
Static
preserveCase
- preserveCase(oldText: string, newText: string): string
Parameters
- oldText: string
- newText: string