Constructor
new LayerListView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
The collection of layers to display in the list
Type:
- Source:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Source:
isCategorized :boolean
Whether the layer list is a under a category. Flat layer list and categorized
layer list are styled differently.
Type:
- Source:
template :Underscore.template
The primary HTML template for this view
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
initialize(optionsopt)
Executed when a new LayerListView is created
Parameters:
Name |
Type |
Attributes |
Description |
options |
Object
|
<optional>
|
A literal object with options to pass to the view |
- Source:
removeListeners()
Remove any event listeners on the collection
- Since:
- Source:
Renders this view
- Source:
Returns:
Returns the rendered view element
-
Type
-
LayerListView
search(textopt) → {boolean}
Searches and only displays layers that match the text.
Parameters:
Name |
Type |
Attributes |
Description |
text |
string
|
<optional>
|
The search text from user input. |
- Source:
Returns:
- True if a layer item matches the text
-
Type
-
boolean
setListeners()
Add or remove items from the list when the collection changes
- Since:
- Source: