Constructor
new PortalsSearchView()
- Since:
- Source:
Extends
Members
events
- Source:
searchTerm :string
The submitted term shared by both portal lists.
Type:
- Since:
- Source:
Methods
initialize()
- Source:
onClose() → {void}
Stops searches and listeners while retaining the shared content
element.
- Since:
- Source:
Returns:
-
Type
-
void
Closes the search views and removes this element.
- Since:
- Source:
Returns:
This view
-
Type
-
PortalsSearchView
render()
Renders the list of portals
- Source:
search(event)
Applies the submitted term to both portal lists.
Parameters:
| Name |
Type |
Description |
event |
Event
|
The form submission |
- Since:
- 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