Class: DisplayCollection

display-collection~ DisplayCollection

new DisplayCollection(models, options)

Combines the parametric values selected by the user with the fields and values returned by the server in order
to back a view of parametric values relevant to a search. Once a parametric value has been selected (and added to the
selected parametric values collection), it should not be removed until the user deselects it, even if they search for
something else.

This is designed to be a read only view on the underlying collections and should not be modified externally.

Parameters:
Name Type Description
models Array

Must be the empty array due to restrictions in Backbone Collection

options module:display-collection~DisplayCollectionOptions
Source:

Extends

  • Backbone.View

Methods

<private> getResolvedDisplayModels() → {Array.<module:display-collection~DisplayModel>}

Returns an array of display models based on the current state of the parametric and selected values collections.

Source:
Returns:
Type
Array.<module:display-collection~DisplayModel>

Type Definitions

DisplayCollectionOptions

Properties:
Name Type Description
parametricCollection Backbone.Collection

The collection which fetches the parametric fields and values
which match the current search

selectedParametricValues module:selected-values-collection~SelectedValuesCollection

The collection which tracks which parametric
values have been selected by the user

Source:
Copyright 2015-2017 Hewlett Packard Enterprise Development Company, L.P. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.0 on Thu May 25th 16:25 2017 using the DocStrap template.