Class ZmSearchController
Class Detail
ZmSearchController(container)
Creates a search controller.
Method Detail
dateSearch(d, searchFor)
Performs a search by date.
fromSearch(address)
Performs a search by from address.
{String}
getSearchFieldValue()
Gets the search field value.
{String}
getSearchForFromType(type)
Get the searchFor var which is the same as type except for mail, in which case the type is either msg or conv but searchFor is mail.
{ZmButtonToolBar}
getSearchToolbar()
Gets the search tool bar.
{String}
getTypeFromSearchFor(searchFor, userInitiated)
Gets the item type, based on searchFor. The type is the same as the searchFor, except for mail in which the type is either msg or conv based on view.
redoSearch(search, noRender, changes, callback, errorCallback)
Performs the given search. It takes a ZmSearch, rather than constructing one out of the currently selected menu
choices. Aside from re-executing a search, it can be used to perform a canned search.
resetSearchAllAccounts()
Resets search for all accounts.
resetSearchToolbar()
Resets the search toolbar. This is used by the offline client to "reset" the toolbar whenever user
switches between accounts.
search(params, query, searchFor, types, sortBy, offset, limit, searchId, noRender, userText, callback, errorCallback, response, skipUpdateSearchToolbar, origin, sessionId, noGal)
Performs a search and displays the results.
setDefaultSearchType(type)
Sets the default type. This method provides a programmatic way to set the search type.
setSearchField(searchString)
Sets the search field.
toSearch(address)
Performs a search by to address.
updateOverview(searchObj)
Selects the appropriate item in the overview based on the search. Selection only happens
if the search was a simple search for a folder, tag, or saved search. A check is done to
make sure that item is not already selected, so selection should only occur for a query
manually run by the user.
|
||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:37 GMT-0400 (EDT)
|