Constructor
The widget to search in
Private _currentProtected _filtersPrivate _highlightPrivate _markPrivate _matchesPrivate _mutationPrivate _onPrivate _queryProtected _stateReadonly isSet to true if the widget under search is read-only, false if it is editable. Will be used to determine whether to show the replace option.
Protected widgetThe current match
The current index of the selected match.
Whether the search provider is disposed or not.
The current matches
The number of matches.
Dispose of the resources held by the search provider.
If the object's dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Move the current match indicator to the next match.
Optional loop: booleanWhether to loop within the matches list.
A promise that resolves once the action has completed.
Move the current match indicator to the previous match.
Optional loop: booleanWhether to loop within the matches list.
A promise that resolves once the action has completed.
Replace the currently selected match with the provided text
The replacement text
Optional loop: booleanWhether to loop within the matches list.
A promise that resolves with a boolean indicating whether a replace occurred.
Initialize the search using the provided options. Should update the UI to highlight all matches and "select" whatever the first match should be.
A RegExp to be use to perform the search
Optional filters: {}Filter parameters to pass to provider
Static createInstantiate a generic search provider for the widget.
The widget provided is always checked using isApplicable before calling
this factory.
The widget to search on
The search provider registry
Optional translator: ITranslator[optional] The translator object
The search provider on the widget
Static isReport whether or not this provider has the ability to search on the given object
Static preserveGenerated using TypeDoc
Generic DOM tree search provider.