kibana/x-pack/examples/embedded_lens_example
Stratoula Kalafateli 3b67450d41
[Lens playground] Removes deprecated eui components (#161437)
## Summary

Closes https://github.com/elastic/kibana/issues/161423

Removes the deprecated EUI components.
2023-07-07 16:01:55 +03:00
..
public [Lens playground] Removes deprecated eui components (#161437) 2023-07-07 16:01:55 +03:00
.eslintrc.json [Lens] Implement deep linking and embedding (#84416) 2021-01-12 10:45:53 +01:00
kibana.jsonc [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
README.md [Lens] Implement deep linking and embedding (#84416) 2021-01-12 10:45:53 +01:00
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06: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.