kibana/x-pack/examples/embedded_lens_example
Marco Liberati dfc70bdfd1
[Lens] Enable actions on Lens Embeddable (#102038)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 14:59:36 +02:00
..
public [Lens] Enable actions on Lens Embeddable (#102038) 2021-06-25 14:59:36 +02:00
.eslintrc.json
kibana.json [Lens] Enable actions on Lens Embeddable (#102038) 2021-06-25 14:59:36 +02:00
package.json
README.md
tsconfig.json Merge tsconfig and x-pack/tsconfig files (#94519) 2021-03-16 15:13:49 +01: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.