startFind( mode )
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 of FIND_NORMAL
, FIND_TYPEAHEAD
, or FIND_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.Typically, you'll simply bind this method to your "find" command, like this:
<command name="cmd_find" oncommand="gFindBar.startFind(gFindBar.FIND_NORMAL);"/>