-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:DrilldownsEmbeddable panel DrilldownsEmbeddable panel DrilldownsFeature:EmbeddingEmbedding content via iFrameEmbedding content via iFrame
Description
In drilldowns we will allow users to configure the dynamic actions they create. Configuration collection from user is responsibility of an action, as from embeddable's perspective those are just opaque objects—embeddable does not know the structure of configuration objects.
In this issue we need to implement functionality that allows to render UI component defined by the dynamic action to collect a configuration object for that action.
- Create
DynamicActioninterface that extendsActioninterface. -
DynamicActionshould haveCollectConfigattribute, which is aUiComponentcomponent rendered every time we want to create or edit configuration for that dynamic action.CollectConfigshould support the following props:-
config—objectorundefinedwhich represents the initial configuration thatConfigInputsshould display. -
onConfig— a callback(config: object | undefined) => voidthat is called every time config is changed in UI by the user.Should call with.objectonly on valid configCalling with.undefinedmeans "remove config"
-
- Create react component that can render
CollectConfigof dynamic actions.
Example actions that will use this interface:
Parent issue: #43299
Metadata
Metadata
Assignees
Labels
Feature:DrilldownsEmbeddable panel DrilldownsEmbeddable panel DrilldownsFeature:EmbeddingEmbedding content via iFrameEmbedding content via iFrame