selectEffectiveParameterValuesForWidget()
Home > @gooddata/sdk-ui-dashboard > selectEffectiveParameterValuesForWidget
selectEffectiveParameterValuesForWidget() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the parameter values to inject into the widget's IExecutionConfig.parameterValues.
Signature:
selectEffectiveParameterValuesForWidget: (ref: ObjRef | undefined) => DashboardSelector<IInsightParameterValue[]>
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
ref |
ObjRef | undefined |
Returns:
DashboardSelector<IInsightParameterValue[]>
Remarks
The result is the intersection of dashboard parameter entries and the parameters referenced by the widget's insight (per insightParameters). Dashboard parameters not referenced by the widget's insight are excluded so that adding/removing unrelated parameters does not invalidate the widget's defFingerprint. Returns an empty array when enableParameters is off so persisted parameter values cannot silently affect execution while the UI is hidden.