mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
Closes https://github.com/elastic/kibana/issues/145429 ## Summary This PR expands on the control group building block by 1. Replacing the old `input` declarative API and replacing it with a `getCreationOptions` callback 2. Exposing the redux embeddable tools to the consumer As part of this, I created an example plugin to demonstrate some of the new functionality 👍  Also, to avoid some code duplication, I had to move some code to the generic `control_group_helpers.tsx` so that both the controls plugin and the new example plugin could use it. ### Checklist - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
13 lines
473 B
TypeScript
13 lines
473 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import { ControlsExamplePlugin } from './plugin';
|
|
|
|
export function plugin() {
|
|
return new ControlsExamplePlugin();
|
|
}
|