mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
[Control Group] Add Button & Minimal Editor Settings (#151161)
Adds an "add" button that shows up to the right of the Control Group if configured. Also adds a system for fetching settings from consumers, and adds settings that can hide or show pieces of the Control editor flyout.
This commit is contained in:
parent
fa6c0d1c31
commit
f77f924a2a
16 changed files with 346 additions and 197 deletions
|
@ -104,12 +104,14 @@ export const EditExample = () => {
|
|||
</>
|
||||
) : null}
|
||||
<ControlGroupRenderer
|
||||
getInitialInput={async (initialInput, builder) => {
|
||||
getCreationOptions={async (initialInput, builder) => {
|
||||
const persistedInput = await onLoad();
|
||||
return {
|
||||
...initialInput,
|
||||
...persistedInput,
|
||||
viewMode: ViewMode.EDIT,
|
||||
initialInput: {
|
||||
...initialInput,
|
||||
...persistedInput,
|
||||
viewMode: ViewMode.EDIT,
|
||||
},
|
||||
};
|
||||
}}
|
||||
onLoadComplete={async (newControlGroup) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue