new SelectedValuesCollection()
Collection designed to be the only mutable store for the selected parametric values in an application. Every model
should have string "field" and "value" attributes.
The Backbone.Collection.modelId method is used to ensure that models with different field and value are considered
unique, without having to specify an id on each model explicitly.
- Source:
Extends
- Backbone.View
Methods
-
toFieldsAndValues() → {Object.<string, SelectedValuesCollection.FieldData>}
-
Returns a map of field name to list of field values.
- Source:
Returns:
- Type
- Object.<string, SelectedValuesCollection.FieldData>
-
toFieldTextNode() → {parser.ExpressionNode}
-
Create a field text node from this collection. Returns null if the collection is empty.
- Source:
Returns:
- Type
- parser.ExpressionNode
Type Definitions
-
FieldData
-
- Source:
Properties:
Name Type Description valuesArray.<String> The values of the field
typeString Parametric/Numeric/NumericDate
-
SelectedValueAttributes
-
The attributes on each model in a SelectedValuesCollection.
- Source:
Properties:
Name Type Description fieldstring The parametric field name
valuestring The parametric field value
typeString Parametric/Numeric/NumericDate