Class: PortalsSearchView

PortalsSearchView()

A view that shows a list of Portals in the main app window

Screenshot

Constructor

new PortalsSearchView()

Since:
  • 2.16.0
Source:

Extends

  • Backbone.View

Members

events

Source:

searchTerm :string

The submitted term shared by both portal lists.
Type:
  • string
Since:
  • 2.41.0
Source:

Methods

initialize()

Source:

onClose() → {void}

Stops searches and listeners while retaining the shared content element.
Since:
  • 2.41.0
Source:
Returns:
Type
void

remove() → {PortalsSearchView}

Closes the search views and removes this element.
Since:
  • 2.41.0
Source:
Returns:
This view
Type
PortalsSearchView

render()

Renders the list of portals
Source:
Applies the submitted term to both portal lists.
Parameters:
Name Type Description
event Event The form submission
Since:
  • 2.41.0
Source:

showError(e)

Displays an error message when rendering this view has failed.
Parameters:
Name Type Description
e Error The error that occurred while rendering the view.
Source:

template(options) → {string}

Create HTML string for the portals search view.
Parameters:
Name Type Description
options Object The options for the template.
Properties
Name Type Description
searchTerm string The current search term.
portalTermPlural string The plural term for portals.
Source:
Returns:
The HTML template for the view.
Type
string