Constructor
new LayerCategoryItemView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
The model that this view uses
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
events()
- Source:
initialize(options)
Executed when a new LayerCategoryItemView is created
Parameters:
Name |
Type |
Description |
options |
Object
|
A literal object with options to pass to the view |
- Source:
insertIcon()
Inserts the icon before the label.
- Source:
Renders this view
- Source:
Returns:
Returns the rendered view element
-
Type
-
LayerCategoryItemView
search(textopt) → {boolean}
Searches and only displays self if layers 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
toggleExpanded()
Sets the model's 'expanded' status attribute to true if it's false, and
to false if it's true. Executed when a user clicks on this CategoryItem in a
CategoryListView.
- Source:
updateLayerList()
Show or hide the layer list based on the category's expand status.
- Source: