Constructor
The widget to search in
Protected_filtersProtected_stateReadonlyisSet 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.
ProtectedwidgetThe widget to search in
The 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.
Optionalloop: 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.
Optionalloop: 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
Optionalloop: 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
Filter parameters to pass to provider
StaticcreateInstantiate 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
Optionaltranslator: ITranslator[optional] The translator object
The search provider on the widget
StaticisStaticpreserve
Generic DOM tree search provider.