[Embeddable Rebuild] Add creation / configuration options to buildEmbeddable
#189939
Labels
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
project:embeddableRebuild
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
technical debt
Improvement of the software architecture and operational architecture
Describe the feature:
Sometimes, when creating an embeddable, you need to pass in some state that is never modified after creation and does not need to be serialized. Examples include:
isShareable
andtooltipRenderer
for the Maps embeddable (https://github.com/elastic/kibana/blob/main/x-pack/plugins/maps/public/react_embeddable/types.ts#L55-L58)showAddButton
,editorConfig
, etc. for the Control Group embeddable (https://github.com/elastic/kibana/blob/main/src/plugins/controls/public/control_group/types.ts#L44-L52)displaySettings
in options list control (not technically an embeddable, but similar architecture would be followed)This state often controls how the embeddable is rendered initially, but is never used again - we should add a way to provide this state via the
buildEmbeddable
callbackThe text was updated successfully, but these errors were encountered: