NotebookSearchProvider | @jupyterlab (original) (raw)
Hierarchy (View Summary)
- SearchProvider<NotebookPanel>
- NotebookSearchProvider
Index
Constructors
constructor
- new NotebookSearchProvider(
widget: NotebookPanel,
translator?: ITranslator,
): NotebookSearchProvider NotebookSearchProvider
Returns
Properties
Protected
_filtersChanged
Protected
_stateChanged
Protected
delayedActiveCellChangeHandlerReady
delayedActiveCellChangeHandlerReady: Promise<void>
Protected
translator
Protected
widget
Accessors
currentMatchIndex
- get currentMatchIndex(): null | number
Returns null | number
filtersChanged
isDisposed
- get isDisposed(): boolean
Returns boolean
isReadOnly
- get isReadOnly(): boolean
Returns boolean
matchesCount
- get matchesCount(): null | number
Returns null | number
replaceOptionsSupport
- get replaceOptionsSupport(): IReplaceOptionsSupport
IReplaceOptionsSupport
Returns
stateChanged
Methods
clearHighlight
dispose
- dispose(): void
Returns void
endQuery
getFilters
The filters.
getInitialQuery
- getInitialQuery(): string
Returns string
Initial value used to populate the search box.
getSelectionState
- getSelectionState(): SelectionState
SelectionState
Returns
highlightNext
- highlightNext(
loop?: boolean,
options?: IHighlightAdjacentMatchOptions,
): Promise<undefined | ISearchMatch> Promise<undefined | ISearchMatch>
Returns
The next match if available.
highlightPrevious
- highlightPrevious(
loop?: boolean,
options?: IHighlightAdjacentMatchOptions,
): Promise<undefined | ISearchMatch> Promise<undefined | ISearchMatch>
Returns
The previous match if available.
replaceAllMatches
- replaceAllMatches(newText: string, options?: IReplaceOptions): Promise<boolean>
Promise<boolean>
Returns
A promise that resolves with a boolean indicating whether a replace occurred.
replaceCurrentMatch
- replaceCurrentMatch(
newText: string,
loop?: boolean,
options?: IReplaceOptions,
): Promise<boolean> Parameters
- newText: string
- loop: boolean = true
Optional
options: IReplaceOptions
Returns Promise<boolean>
A promise that resolves with a boolean indicating whether a replace occurred.
startQuery
validateFilter
- validateFilter(name: string, value: boolean): Promise<boolean>
Parameters
- name: string
- value: boolean
Returns Promise<boolean>
Static
createNew
- createNew(widget: NotebookPanel, translator?: ITranslator): ISearchProvider
ISearchProvider
Returns
The search provider on the notebook panel
Static
isApplicable
- isApplicable(domain: Widget): domain is NotebookPanel
NotebookPanel
Returns domain is
Search ability
Static
preserveCase
- preserveCase(oldText: string, newText: string): string
Parameters
- oldText: string
- newText: string