kibana/x-pack/examples/embedded_lens_example
Tyler Smalley c4815d319e
Updates Github link references from master to main (#116789)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-29 09:53:08 -07:00
..
public Updates Github link references from master to main (#116789) 2021-10-29 09:53:08 -07:00
.eslintrc.json
kibana.json Split KibanaApp into VisEditors and DataDiscovery (#110588) 2021-08-31 15:57:23 +02:00
package.json Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
README.md
tsconfig.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00

Embedded Lens examples

To run this example plugin, use the command yarn start --run-examples.

This example shows how to embed Lens into other applications. Using the EmbeddableComponent of the lens start plugin, you can pass in a valid Lens configuration which will get rendered the same way Lens dashboard panels work. Updating the configuration will reload the embedded visualization.

It is possible to use the same configuration and the navigateToPrefilledEditor method to navigate the current user to a prefilled Lens editor so they can manipulate the configuration on their own and even save the results to a dashboard. Make sure to always check permissions using canUseEditor whether the current user has permissions to access Lens.