Skip to content
  1. Examples
  2. Integrations
  3. Vue (no wrapper)

Vue (no wrapper) ​

This example embeds Ogma directly inside a Vue Single-File Component, without the @linkurious/ogma-vue wrapper. The instance is created in onMounted from a ref to a container element and destroyed in onUnmounted, following the component lifecycle. Hovering a node shows a tooltip driven by reactive Vue state, updated from Ogma's mouseover/mousemove/mouseout events.