ToolbarTemplates

App.searchV2. ToolbarTemplates

HTML templates for save and load search toolbar actions drop content.

Constructor

new ToolbarTemplates()

See:

Methods

(static) getLoadSearchHtml(searches) → {string}

Returns html to render load saved searches dialog box

Parameters:
Name Type Description
searches Array

Array of saved searches

Returns:
  • Html of load searches
Type
string

(static) getNoSearchToLoadHtml() → {Object}

Returns html for no search div

Returns:
  • Html for no search div
Type
Object

(static) getSaveHtml() → {string}

Returns html to render save search dialog box

Returns:
  • Html to render save search dialog.
Type
string

(static) getSaveSearchHtml() → {string}

Returns html element for a saved search

Returns:
  • Html element for a saved search
Type
string

(static) getSearchesHtml(searches) → {string}

Returns html div of saved searches.

Parameters:
Name Type Description
searches Array

Array of saved searches

Returns:
  • Html div of searches.
Type
string