The context for the search.
The current match. This is undefined
if we have not searched yet. It
is null
if nothing matches.
The direction in which the search moves.
Set the search scope. No result will be returned outside the scope. Setting
the scope to undefined
means "search the whole document".
Generated using TypeDoc
This models a search on the GUI tree. Performing searches directly on the data tree is theoretically possible but fraught with problems. For instance, some data may not be visible to users and so the search in the data tree would have to constantly refer to the GUI tree to determine whether a hit should be shown. Additionally, the order of the data shown in the GUI tree may differ from the order in the data tree.