Global

Members

appConfigPath :string

The path to your configuration file for MetacatUI. This can be any web-accessible location. This variable must be defined in index.html.
Type:
  • string
Since:
  • 2.12.0
Source:

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

className :string

The HTML class to use for this view's outermost element.
Type:
  • string
Source:

className :string

The HTML class to use for this view's outermost element.
Type:
  • string
Source:

className :string

The HTML class to use for this view's outermost element.
Type:
  • string
Source:

classNames :Object.<string, string>

The HTML classes to use for this view's HTML elements.
Type:
  • Object.<string, string>
Source:

classNames :Object.<string, string>

The HTML classes to use for this view's HTML elements.
Type:
  • Object.<string, string>
Source:

classNames :Object.<string, string>

The HTML classes to use for this view's HTML elements.
Type:
  • Object.<string, string>
Source:

defaults :Object

Default values for an EML 211 Distribution model. This is essentially a flattened version of the EML 2.1.1 DistributionType, including nodes and node attributes. Not all nodes are supported by this model yet.
Type:
  • Object
Properties:
Name Type Description
type string The name of the top-level XML element that this model represents (distribution)
objectXML string The XML string representation of the distribution
objectDOM Element The DOM representation of the distribution
mediumName string The name of the medium on which the offline distribution is stored
mediumVolume string The volume number of the medium on which the offline distribution is stored
mediumFormat string The format of the medium on which the offline distribution is stored
mediumNote string A note about the medium on which the offline distribution is stored
url string The URL of the online distribution
urlFunction string The purpose of the URL. May be either "information" or "download".
onlineDescription string A description of the online distribution
parentModel EML211 The parent model of this distribution model
Source:

defaults :Object

Returns the default properties for this model. Defined here.
Type:
  • Object
Properties:
Name Type Description
objectXML string The XML string for this model
objectDOM Element The XML DOM for this model
parentModel EML211 The parent EML211 model
taxonomicClassification Array.<taxonomicClassification> An array of taxonomic classifications, defining the taxonomic coverage of the dataset
generalTaxonomicCoverage string A general description of the taxonomic coverage of the dataset
Source:

distLocations :Array.<string>

The direct children of the node that can have values, and that are supported by this model. "inline" is not supported yet. A distribution may have ONE of these nodes.
Type:
  • Array.<string>
Since:
  • 2.26.0
Source:

events :Object

The events this view will listen to and the associated function to call.
Type:
  • Object
Source:

offlineNodes :Array.<string>

lower-case EML node names that belong within the node. These must be in the correct order.
Type:
  • Array.<string>
Since:
  • 2.26.0
Source:

onlineNodes :Array.<string>

lower-case EML node names that belong within the node. These must be in the correct order.
Type:
  • Array.<string>
Since:
  • 2.26.0
Source:

tagName :string

The HTML element to use for this view's outermost element.
Type:
  • string
Source:

tagName :string

The HTML element to use for this view's outermost element.
Type:
  • string
Source:

taxonomicClassification :Object

Type:
  • Object
Properties:
Name Type Description
taxonRankName string The name of the taxonomic rank, for example, Domain, Kingdom, etc.
taxonRankValue string The value for the given taxonomic rank, for example, Animalia, Chordata, etc.
commonName Array.<string> Common name(s) for the taxon, for example ["Animal"]
taxonId Array.<Object> A taxon identifier from a controlled vocabulary, for example, ITIS, NCBI, etc.
Properties
Name Type Description
provider string The provider of the taxon identifier, given as a URI, for example http://www.itis.gov
value string The identifier from the provider, for example, 180092
taxonomicClassification Array.<Object> A nested taxonomic classification, since taxonomy is represented as a hierarchy in EML.
Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

type :string

The type of View this is
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

urlFunctionTypes :Array.<string>

the allowed values for the urlFunction attribute
Type:
  • Array.<string>
Since:
  • 2.26.0
Source:

Methods

autocompleteSearch(rawQuery)

Get autocompletion predictions from the GeocoderSearch model.
Parameters:
Name Type Description
rawQuery string is the user's search query with spaces.
Source:

blur()

Blur the input field in this View.
Source:

classificationsAreEqual(c1, c2) → {boolean}

Check if two classifications are equal. Two classifications are equal if they have the same rankName, rankValue, commonName, and taxonId, as well as the same nested classifications. This function is recursive.
Parameters:
Name Type Description
c1 taxonomicClassification
c2 taxonomicClassification
Since:
  • 2.24.0
Source:
Returns:
- True if the two classifications are equal
Type
boolean

clear()

Remove all child view elements and destroy their Backbone.View.
Source:

clearError()

Clear error text, remove error styling and hide the error element.
Source:

couldBeLatLong(value) → {boolean}

Determine whether the user could be typing a lat, long pair.
Parameters:
Name Type Description
value string is the currently entered query string.
Source:
Returns:
Whether the current value could be a lat,long pair due to the string NOT containing characters (e.g. a-z) that could not be in a lat,long pair.
Type
boolean

decrementFocusIndex()

Decrement the focused index with a minimum value of 0. This corresponds to an ArrowUp key down event. Note: An ArrowUp key press while the current index is -1 will result in highlighting the first element in the list.
Source:

events()

The events this view will listen to and the associated function to call.
Source:

focus()

Focus the input field in this View.
Source:

focusInput()

Helper function to focus input on the searh query input and ensure that the cursor is at the end of the text (as opposed to the beginning which appears to be the default jQuery behavior).
Source:

getCancelButtonContainer()

Get the cancel icon button container.
Source:
Returns:
jQuery element representing the cancel icon button container. Or an empty jQuery selector if the button is not found.

getError()

Get the error text element.
Source:
Returns:
jQuery element representing the error text. Or an empty jQuery selector if the button is not found.

getInput()

Get the input.
Source:
Returns:
jQuery element representing the input. Or an empty jQuery selector if the button is not found.

getInputField()

Get the container element for the input.
Source:
Returns:
jQuery element representing the input container. Or an empty jQuery selector if the button is not found.

getInputValue()

Get the current value of the input field.
Source:
Returns:
The current value of the input field or empty string if the input field is not found.

getList() → {HTMLUListElement}

Getter function for the list of predictions.
Source:
Returns:
Returns the predictions unordered list HTML element.
Type
HTMLUListElement

getSearchButton()

Get the search icon button.
Source:
Returns:
jQuery element representing the search icon button. Or an empty jQuery selector if the button is not found.

getSearchInput() → {HTMLInputElement}

Getter function for the search query input.
Source:
Returns:
Returns the search input HTML element.
Type
HTMLInputElement

goToLocation(geocoding)

Navigate to the GeocodedLocation.
Parameters:
Name Type Description
geocoding GeocodedLocation is the location that corresponds to the the selected prediction.
Source:

hasValuesForDistributionLocation(location) → {boolean}

Check if the model has values for the given distribution location.
Parameters:
Name Type Description
location string one of the names of the direct children of the node, i.e. any of the values in this.distLocations.
Since:
  • 2.26.0
Source:
Returns:
- true if the model has values for the given location, false otherwise.
Type
boolean

hideCancelAndDimSearch()

Manage state change for the search button and cancel button when user has cleared the input.
Source:

hidePredictionsList(event)

Hide the predictions list unless user is selecting a list item.
Parameters:
Name Type Description
event FocusEvent Mouse event corresponding to a change in focus.
Source:

incrementFocusIndex()

Increment the focused index with a maximum value of the last value in the list. This corresponds to an ArrowDown key down event.
Source:

initialize(mapModel)

Parameters:
Name Type Description
mapModel Map is the Map model that the ViewfinderModel is managing for the corresponding ViewfinderView.
Source:

initialize(options)

Initializes this EMLDistribution object
Parameters:
Name Type Description
options Object A literal object with options to pass to the model
Source:

isDuplicate(classification, indexToSkip) → {boolean}

Returns true if the given classification is a duplicate of another classification in this model. Duplicates are considered those that have all values identical, including rankName, rankValue, commonName, and taxonId. If there are any nested classifications, then they too must be identical for the classification to be considered a duplicate, this this function is recursive. Only checks one classification at a time.
Parameters:
Name Type Description
classification taxonomicClassification
indexToSkip number The index of the classification to skip when checking for duplicates. This is useful when checking if a classification is a duplicate of another classification in the same model, but not itself.
Since:
  • 2.24.0
Source:
Returns:
- True if the given classification is a duplicate
Type
boolean

keydown()

Event handler to prevent cursor from jumping to beginning of an input field (default behavior).
Source:

keyup()

Event handler for Backbone.View configuration that is called whenever the user types a key.
Source:

onBlur()

Event handler for Backbone.View configuration that is called whenever the user blurs the input.
Source:

onCancel()

Handler function for the cancel icon button action.
Source:

onFocus()

Event handler for Backbone.View configuration that is called whenever the user focuses the input.
Source:

onKeydown()

Event handler for Backbone.View configuration that is called whenever the user types a key.
Source:

onKeyup()

Event handler for Backbone.View configuration that is called whenever the user types a key.
Source:

onSearch()

Event handler for Backbone.View configuration that is called whenever the user clicks the search button or hits the Enter key.
Source:

parse(attributes)

Parses the given XML node or object and sets the model's attributes
Parameters:
Name Type Description
attributes Object the attributes passed in when the model is instantiated. Should include objectDOM or objectXML to be parsed.
Source:

removeDuplicateClassifications()

Remove any duplicated classifications from this model. See isDuplicate for more information on what is considered a duplicate. If any classifications are removed, then a "duplicateClassificationsRemoved" event is triggered, passing the removed classifications as an argument.
Since:
  • 2.24.0
Source:
Fires:
  • event:duplicateClassificationsRemoved

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

render()

Render the Prediction sub-views, tracking them so they can be removed and their event listeners cleaned up.
Source:

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

renderPredictionsList()

Render the Prediction sub-views.
Source:

renderSearchInput()

Render the SearchInputView.
Source:

resetFocusIndex()

Reset the focused index back to the initial value so that no element in the UI is highlighted.
Source:
Event handler for Backbone.View configuration that is called whenever the user clicks the search button or hits the Enter key.
Parameters:
Name Type Description
value string is the query string.
Source:
Search function for the SearchInputView.
Parameters:
Name Type Attributes Description
text string <optional>
The search text from user input.
Source:
Returns:
- True if there is a layer match.
Type
boolean
Trigger the search on the ViewfinderModel.
Source:

select()

Event handler function that selects this element, deselecting any other sibling list elements.
Source:

selectPrediction(prediction)

Select a prediction from the list of predictions and navigate there.
Parameters:
Name Type Description
prediction Prediction is the user-selected Prediction that needs to be geocoded and navigated to.
Source:

serialize() → {string}

Returns the XML string representation of this model
Source:
Returns:
Type
string

setError(errorText)

API for the view that conducts the search to toggle on the error message.
Parameters:
Name Type Description
errorText string
Source:

setInputValue()

Set the current value of the input field.
Source:

setQuery()

Helper function to set the input field.
Source:

setupListeners()

Setup all event listeners on ViewfinderModel.
Source:

setupListeners()

Setup all event listeners on ViewfinderModel.
Source:

setupListeners()

Setup all event listeners on ViewfinderModel.
Source:

showCancelAndSearch()

Manage state change for the search button and cancel button when user has entered some input.
Source:

showPredictionsList()

Show the predictions list and potentially submit a search for new Predictions to display when there is a search query.
Source:

Type Definitions

AdditionalField

An additional field object contains the properties an additional query field to add that are required to render it correctly. An additional query field is one that does not actually exist in the query service index.
Type:
  • Object
Properties:
Name Type Description
name string A unique ID to represent this field. It must not match the name of any other query fields.
fields Array.<string> The list of real query fields that this abstracted field will represent. It must exactly match the names of the query fields that actually exist.
label string A user-facing label to display.
description string A description for this field.
category string The name of the category under which to place this field. It must match one of the category names for an existing query field.
Since:
  • 2.15.0
Source:

AdditionalField

An additional field object contains the properties for an additional query field to add to the QueryFieldSelectView that are required to render it correctly. An additional query field is one that does not actually exist in the query service index.
Type:
  • Object
Properties:
Name Type Description
name string A unique ID to represent this field. It must not match the name of any other query fields.
fields Array.<string> The list of real query fields that this abstracted field will represent. It must exactly match the names of the query fields that actually exist.
label string A user-facing label to display.
description string A description for this field.
category string The name of the category under which to place this field. It must match one of the category names for an existing query field.
Source:

CategoryMap

An object that defines a single category for each field. In addition to a label and icon property, each CategoryMap should have a queryTypes property OR a a queryFields property, not both.
Type:
  • Object
Properties:
Name Type Description
label string A human readable label to use as a general category for groups of query fields
icon string The name of a Font Awesome 3.2.1 icon to represent the field type
queryTypes Array.<string> An array of the possible query field types, as named in the type attribute, that belong in the given category. If a queryType array is provided, the queryFields array will be ignored.
queryFields Array.<string> As an alternative to grouping fields by type, they may also be grouped by field name. Use this property instead of queryTypes to list fields by their name attribute.
default boolean Set to true for one category. Any fields that don't match another category will be placed here.
Source:

ContentTemplate

A ContentTemplate object specifies a single template designed to render information about the Feature.
Type:
  • Object
Properties:
Name Type Attributes Description
name string <optional>
An identifier for this template.
options Array.<string> <optional>
The list of keys (option names) that are allowed for the given template. Only options with these keys will be passed to the underscore.js template, regardless of what is configured in the MapConfig#FeatureTemplate. When no options are specified, then the entire Feature model will be passed to the template as JSON.
template string The path to the HTML template. This will be used with require() to load the template as needed.
Since:
  • 2.19.0
Source:

ContextDefinition

Defines how to render a citation style for only it's in-text or full citation format.
Type:
  • Object
Properties:
Name Type Description
template Underscore.Template The Underscore.js template to use. HTML files are converted to Underscore.js templates.
archivedTemplate Underscore.Template The Underscore.js template to use when the object is archived.
render string The name of the method in this view to use to render the citation. This method will be passed the template (or archived template if the object is archived), as well as the template options.
Since:
  • 2.23.0
Source:
Example
{
 inText: {
   template: _.template(InTextAPATemplate),
   archivedTemplate: _.template(InTextAPAArchivedTemplate),
   render: "renderAPAInText",
}

CustomEMLMethod

In the editor, sometimes it is useful to have guided questions for the Methods section in addition to the generic numbered method steps. These custom methods are defined here as an array of literal objects that define each custom Methods question. Custom methods are serialized to the EML as regular method steps, but with an unchangeable title, defined here, in order to identify them.
Type:
  • object
Properties:
Name Type Description
titleOptions Array.<string> One or more titles that may exist in an EML Method Step that identify that Method Step as a custom method type. THe first title in the array is serialized to the EML XML.
id string A unique identifier for this custom method type.
required boolean If true, this custom method will be a required field for submission in the EML editor.
Since:
  • 2.19.0
Source:
Example
[{
                    "titleOptions": ["Ethical Research Procedures"],
                    "id": "ethical-research-procedures",
                    "required": false
                  }]

DetailSectionOption

Configuration for a Layer Detail section to show within this Layer Details view.
Type:
  • Object
Properties:
Name Type Description
label string The name to display for this section
view Backbone.View Any view that will render content for the Layer Detail section. This view will be passed the MapAsset model. The view should display information about the MapAsset and/or allow some aspect of the MapAsset's appearance to be edited - e.g. a LayerInfoView or a LayerOpacityView.
collapsible boolean Whether or not this section should be expandable and collapsible.
showTitle boolean Whether or not to show the title/label for this section.
hideIfError boolean Set to true to hide this section when there is an error loading the layer. Example: we should hide the opacity slider for layers that are not visible on the map
Source:

DrawToolButtonOptions

Type:
  • Object
Properties:
Name Type Attributes Description
name string The name of the button. This should be the same as the mode that the button will activate (if the button is supposed to activate a mode).
label string The label to display on the button.
icon string The name of the icon to display on the button.
method string <optional>
The name of the method to call when the button is clicked. If this is not provided, the button will toggle the mode of the draw tool.
Source:

GeocodedLocationOptions

Type:
  • Object
Properties:
Name Type Description
box Object An object representing a boundary around a location on a map.
displayName string A display name for the location.
Source:

LayersPanelViewOptions

Type:
  • Object
Properties:
Name Type Description
The Map Map model that contains layers information.
Source:

MapIconString

A string that represents an icon. Can be either the name of the Font Awesome 3.2 icon OR an SVG string for an icon with all the following properties: 1) Uses viewBox attribute and not width/height; 2) Sets fill or stroke to "currentColor" in the svg element, no styles included elsewhere, 3) Has the required xmlns attribute
Type:
  • string
Source:
See:
Examples
'<svg viewBox="0 0 400 110" fill="currentColor"><path d="M0 0h300v100H0z"/></svg>'
'map-marker'

MetricOption

A metric option is an object with properties that define how to display a metric in the modal.
Type:
  • Object
Properties:
Name Type Description
name string The name of the metric, as it will be displayed in the modal.
icon string The font awesome icon class for the metric
metricValue string The name of the property in the metrics model that contains the value for this metric. This will be displayed in the title of the modal.
render string The name of the method within this view that will render the metric. This method will be called after the basic modal template has been rendered.
Source:

OperatorOption

An operator option is an object that lists the properties of one of the operators that will be displayed to the user in the Query Rule "operator" dropdown list. The operator properties are used to pre-select the correct operator based on attributes in the associated Filter model, as well as to update the Filter model when a user selects a new operator. Operators can set the exclude and matchSubstring properties of the model, and sometimes the values as well. Either the types property OR the fields property must be set, not both.
Type:
  • Object
Properties:
Name Type Attributes Description
label string The label to display to the user
icon string An icon that represents the operator
matchSubstring boolean Whether the matchSubstring attribute is true or false in the filter model that matches this operator
exclude boolean Whether the exclude attribute is true or false in the filter model that matches this operator
hasMax boolean Whether the filter model that matches this operator must have a max attribute
hasMin boolean Whether the filter model that matches this operator must have a min attribute
values Array.<string> For this operator to work as desired, the values that should be set in the filter (e.g. ["true"] for the operator "is true")
types Array.<string> <optional>
The node names of the filters that this operator is used for (e.g. "filter", "booleanFilter")
fields Array.<string> <optional>
The query field names of the filters that this operator is used for. If this is used for a special field, then list the special field name (id), and not the real query field names. If this fields property is set, then the types property will be ignored. (i.e. fields is more specific than types.)
Source:

PredictionOptions

Type:
  • Object
Properties:
Name Type Description
description string A string describing the location represented by the Prediction.
googleMapsPlaceId string The place ID that is used to uniquely identify a place in Google Maps API.
Source:

PredictionViewOptions

Type:
  • Object
Properties:
Name Type Description
The Prediction Prediction model associated with this autocompletion prediction.
The ViewfinderModel model associated with the parent view.
The number position of this prediction within the parent's full list of predictions.
Source:

SearchInputViewOptions

Type:
  • Object
Properties:
Name Type Description
search function A function that takes in a text input and returns a boolean for whether there is a match.
keydownCallback function A function that receives a key event on keydown.
keyupCallback function A function that receives a key event on keyup stroke.
blurCallback function A function that receives an event on blur of the input.
focusCallback function A function that receives an event on focus of the input.
noMatchCallback function A callback function to handle a no match situation.
placeholder String The placeholder text for the input box.
Source:

SearchSortOptions

A list of sort order options to display in this view.
Type:
  • Object
Properties:
Name Type Description
value string The sort value that will be sent directly to the search index in the query string.
label string The name of the sort option that will be shown to the user.
Since:
  • 2.22.0
Source:

SectionContentReturnType

Type:
  • Object
Properties:
Name Type Description
contentContainer HTMLElement The content container HTML element.
sectionContent Backbone.View The Backbone.View instance
Source:

SectionElement

A reference to all of the elements required to make up a toolbar section: the section content and the section link (i.e. tab); as well as the status of the section: active or in active.
Type:
  • Object
Properties:
Name Type Description
contentEl HTMLElement The element that contains the toolbar section's content (the content rendered by the associated view)
linkEl HTMLElement The element that acts as a link to show the section's content, and open/close the toolbar.
isActive Boolean True if this is the active section, false otherwise.
sectionView Backbone.View The associated Backbone.View instance.
Source:

SectionOption

Options/settings that are used to create a toolbar section and its associated link/tab.
Type:
  • Object
Properties:
Name Type Attributes Description
label string The name of this section to show to the user.
icon MapIconString The icon to show in the link (tab) for this section
view Backbone.View <optional>
The view that renders the content of the toolbar section.
viewOptions object <optional>
Any additional options to pass to the content view. By default, the label, icon, and Map model will be passed to the view as 'label', 'icon', and 'model', respectively. To pass a specific attribute from the Map model, use a string with the syntax 'model.desiredAttribute'. For example, 'model.layers' will be converted to view.model.get('layers')
action function <optional>
A function to call when the link/tab is clicked. This can be provided instead of a view and viewOptions, in which case no toolbar section will be created. The function will be passed the view and the Map model as arguments.
isVisible function <optional>
A function that determines whether this section should be visible in the toolbar.
Source:

SpecialField

A special field is one that does not exist in the query service index (i.e. Solr). It can be a combination of fields that are presented to the user as a single field, but which are added to the model as multiple fields. It can also be a duplicate of a field that does exist, but presented with a different label (and even with different operator options or value input if needed).
Type:
  • Object
Properties:
Name Type Attributes Description
name string A unique ID to represent this field. It must not match the name of any other query fields.
fields Array.<string> The list of real query fields that this abstracted field should represent. The query fields listed must exactly match the names of the query fields that are retrieved from the query service.
label string A user-facing label to display.
description string A description for this field.
category string The name of the category under which to place this field. It must match one of the category names for an existing query field set in QueryField#categoriesMap.
values Array.<string> <optional>
An optional list of filter values. If set, this is used to determine whether a pre-existing Query Rule should be displayed as one of these special fields, or as a field from the query API. Setting values means that the values set on the Query Rule model must exactly match the values set.
Since:
  • 2.15.0
Source:

StyleDefinition

Defines how to render a citation style for both it's in-text and full contexts.
Type:
  • Object
Properties:
Name Type Description
full CitationView#ContextDefinition The full citation format.
inText CitationView#ContextDefinition The in-text citation format.
Since:
  • 2.23.0
Source:

UIBuilderOption

A single type of custom search filter that a user can select. An option represents a specific Filter model type and uses that associated Filter View.
Type:
  • Object
Properties:
Name Type Description
label string The user-facing label to show for this option
modelType string The name of the filter model type that that this UI builder should create. Only one is allowed. The model must be one of the six filters that are allowed in a Portal "UIFilterGroupType". See https://github.com/DataONEorg/collections-portals-schemas/blob/master/schemas/portals.xsd.
iconFileName string The file name, including extension, of the SVG icon used to represent this option
description string A very brief, user-facing description of how this filter works
filterTypes Array.<string> An array of one or more filter types that are allowed for this interface. If none are provided then any filter type is allowed. Filter types are one of the four keys defined in
blockedFields Array.<string> An array of one or more search fields for which this interface should be blocked QueryField#filterTypesMap, and correspond to one of the four filter types that are allowed in a Collection definition. See https://github.com/DataONEorg/collections-portals-schemas/blob/master/schemas/collections.xsd. This property is used to help users match custom search filter UIs to appropriate query fields.
modelFunction function A function that takes an optional object with model properties and returns an instance of a model to use for this UI builder
uiFunction function A function that takes the model as an argument and returns the filter UI builder view for this option
Source:

ValueInputOption

The third input in each Query Rule is where the user enters a value, minimum, or maximum for the filter model. Different types of values are appropriate for different solr query fields, and so we display different interfaces depending on the type and category of the selected query fields. A Value Input Option object defines a of interface to show for a given type and category.
Type:
  • Object
Properties:
Name Type Description
filterTypes Array.<string> An array of one or more filter types that are allowed for this interface. If none are provided then any filter type is allowed. Filter types are one of the four keys defined in QueryField#filterTypesMap.
categories Array.<string> An array of one or more categories that are allowed for this interface. These strings must exactly match the categories provided in QueryField.categoriesMap(). If none are provided then any category is allowed.
queryFields Array.<string> Specific names of fields that are allowed in this interface. If none are provided, then any query fields are allowed that match the other properties. If this value select should be used for a special field, then use the name (id) of the special field, not the actual query fields that it represents.
label string If the interface does not include a label (e.g. number filter), include a string to display here.
uiFunction function A function that returns the UI view to use with all appropriate options set. The function will be called with this view as the context.
Source:

ViewfinderViewOptions

Type:
  • Object
Properties:
Name Type Description
The ViewfinderModel model associated with the parent view.
Source:

ViewfinderViewOptions

Type:
  • Object
Properties:
Name Type Description
The Map Map model associated with this view allowing control of panning to different locations on the map.
Source: