startFind( mode )
- Return type: no return value
- Call this method to handle your application's "find" command. This opens the
findbar
, focuses the edit field for the search term, and selects its contents. The first time this is called for a given findbar, the findbar will flash to draw attention to itself. The mode should be one ofFIND_NORMAL
,FIND_TYPEAHEAD
, orFIND_LINKS
. If you don't pass a mode, the last-used mode for the same findbar is used. If the findbar hasn't been used before,FIND_NORMAL
is the default.
Example
Typically, you'll simply bind this method to your "find" command, like this:
<command name="cmd_find" oncommand="gFindBar.startFind(gFindBar.FIND_NORMAL);"/>