Browse Variables
<terra-browse-variables> | TerraBrowseVariables
Browse through the NASA CMR or Giovanni catalogs.
<terra-browse-variables></terra-browse-variables>
import TerraBrowseVariables from '@nasa-terra/components/dist/react/browse-variables'; const App = () => <TerraBrowseVariables></TerraBrowseVariables>;
Examples
Browse the CMR catalog
TODO
Browse the Giovanni catalog
<terra-browse-variables></terra-browse-variables>
[component-metadata:terra-browse-variables]
Importing
If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.
To import this component from the CDN using a script tag:
<script type="module" src="https://cdn.jsdelivr.net/npm/@nasa-terra/components@0.0.138/cdn/components/browse-variables/browse-variables.js"></script>
To import this component from the CDN using a JavaScript import:
import 'https://cdn.jsdelivr.net/npm/@nasa-terra/components@0.0.138/cdn/components/browse-variables/browse-variables.js';
To import this component using a bundler:
import '@nasa-terra/components/dist/components/browse-variables/browse-variables.js';
To import this component as a React component:
import TerraBrowseVariables from '@nasa-terra/components/dist/react/browse-variables';
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
catalog
|
Allows the user to switch the catalog between different providers TODO: add support for CMR catalog and make it the default |
'giovanni'
|
'giovanni'
|
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties.
Methods
| Name | Description | Arguments |
|---|---|---|
#selectFacetField()
|
given a field, ex: “observations”: “Model”, will add the field to any existing selected facets if “selectedOneFieldAtATime” is true, then we will only select that one field |
facet: string , field: string , selectOneFieldAtATime: boolean
|
Learn more about methods.
Dependencies
This component automatically imports the following dependencies.
-
<terra-button> -
<terra-icon> -
<terra-loader> -
<terra-skeleton> -
<terra-variable-keyword-search>