Constructor
new ViewfinderCardCategories()
- Since:
- Source:
Extends
Members
model
- Source:
Methods
getViewfinderCards() → {Array.<ViewfinderCards>}
Get an array of ViewfinderCards, one per ViewfinderCardCategory.
- Source:
Returns:
A list of ViewfinderCards collections.
-
Type
-
Array.<ViewfinderCards>
Get a single flattened ViewfinderCards collection from all categories.
- Source:
Returns:
A ViewfinderCards collection constructed
from the combined models of each category's ViewfinderCards.
-
Type
-
ViewfinderCards
parse(resp, options) → {Array.<object>}
Parse raw category configs into attributes for ViewfinderCardCategory
models. Ensures the Map model is available to each category.
Parameters:
| Name |
Type |
Description |
resp |
Array.<MapConfig#ViewfinderCardCategory>
|
The raw array of
category configs. |
options |
object
|
Options passed to the collection constructor.
Properties
| Name |
Type |
Attributes |
Description |
mapModel |
MapModel
|
<optional>
|
The Map model for these cards. |
|
- Source:
Returns:
The parsed attributes for each model.
-
Type
-
Array.<object>
setMapModel(mapModel)
Set the parent Map model on each ViewfinderCardCategory in this
collection.
Parameters:
| Name |
Type |
Description |
mapModel |
MapModel
|
The Map model that contains these
categories. |
- Source: