refreshSearch - Methods - Author API

Author API Methods

refreshSearch()

Refreshes the search for Items or Activities.

You would want to use this method so that you can fetch updated search results if you expect the data has been updated since the last load, for example.

Examples

// Navigate to item list search, then refresh the search
authorApp.navigate('item/');
var canRefresh = authorApp.refreshSearch();
console.log(canRefresh);

Arguments

None.

Return value

Type boolean

Before executing, this method will check if the view is a list which can be refreshed.

Returns true if it is possible to refresh.

Returns false if unable to refresh.

Note The return value only indicates whether it is possible to refresh. It does not indicate that the refresh has completed.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.