Live Data components store

Last modified by Manuel Leduc on 2025/05/16 10:16

With the migration to Vue 3, a new mechanism was required to register additional components (in addition to the ones already registered by default).
In addition, even components registered by default are now dynamically loaded. For instance, if a Live Data is only displayed cells of type text, only the text displayer will be loaded on the page.

Example:

import { componentStore } from "xwiki-livedata";

// Dynamically register a new "toggle" displayer component.
componentStore.register("displayer", "toggle", async () => {
  return (await import("./components/DisplayerToggle.vue")).default;
});

Get Connected