modifyDrillsForInsightWidget()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Creates the ModifyDrillsForInsightWidget command. Dispatching the created command will add or modify a new drill for the insight widget.
Drill can be setup for particular measure - meaning elements in the insight will be clickable. Exactly one drill can be specified for a measure.
What happens on click depends on the context in which the dashboard lives:
- When in KPI Dashboard (embedded or not) the defined action is actually triggered and done - it may open a new tab, open overlay with insight, navigate to a new dashboard and carry over the filters. - When the dashboard is embedded using Dashboard component, an event will be emitted describing the defined drill action.
export declare function modifyDrillsForInsightWidget(ref: ObjRef, drills: InsightDrillDefinition[], blacklistHierarchiesToUpdate?: IDrillDownReference[], correlationId?: string): IModifyDrillsForInsightWidget;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | reference to insight widget whose drills should be modified | |
drills | drills to add or modify. | |
blacklistHierarchiesToUpdate | (Optional) | |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns