Extends
- Backbone.View
Members
className :string
The HTML classes to use for this view's element
Type:
- string
collectionControlsContainer :string
A jQuery selector for the element that the Save and Cancel buttons should be inserted into
Type:
- string
dataCatalogViewContainer :string
A jQuery selector for the element that the DataCatalogViewWithFilters should be inserted into
Type:
- string
events :Object
The events this view will listen to and the associated function to call.
Type:
- Object
helpTextContainer :string
A jQuery selector for the element that contains the filter help text
Type:
- string
model :CollectionModel
The Collection model that is being edited
Type:
queryBuilderExcludeFields :Array.<string>
Search index fields to exclude in the metadata field selector of each query rule
Type:
- Array.<string>
queryBuilderViewContainer :string
A jQuery selector for the element that the QueryBuilder should be inserted into
Type:
- string
ruleColorPalette :Array.<string>
An array of hex color codes used to help distinguish between different rules
Type:
- Array.<string>
tagName :string
The HTML tag name to use for this view's element
Type:
- string
template
The template for this view. An HTML file is converted to an Underscore.js template
type :string
The type of View this is
Type:
- string
Methods
initialize(options)
Is exexcuted when a new EditCollectionView is created
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | A literal object with options to pass to the view |
Properties:
Name | Type | Description |
---|---|---|
options.model |
CollectionModel | The collection whose search results will be displayed and edited in this view |
render()
Renders this view
renderCollectionControls()
Renders the edit collection controls - e.g. a Save and Cancel buttton
renderDataCatalog()
Render the DataCatalogViewWithFilters
renderQueryBuilder()
renderQueryBuilder - Render the QueryBuilder and insert it into this view
toggleHelpText()
Either hides or shows the help message that lets the user know
they can add filters when the collection is empty.