editorToMetric
Transforms the IConfigurationValues into an object with IMetric and IMetricDisplayConfig to be saved on an entity or rendered in the ui.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
values Optional | IMetricEditorValues | { displayType: "stat-card", metricId: undefined, } | IConfigurationValues for the arcgis-hub-metric-card to use |
metricId Required | string | what should be the id of the transformed metric | |
opts Optional | {
|
Returns
IMetricCardParams
{
- displayConfig:
- IMetricDisplayConfig
- metric:
- IMetric
Function defined in common/src/metrics/editorToMetric.ts:21