SheetXL - v1.0.2
    Preparing search index...

    Function registerMovableRenderer

    • Registers the renderer for a kind of movable content, replacing the built-in one.

      Type Parameters

      • M

      Parameters

      • type: string

        The content type (picture, chart, shape, checkBox, …), as registered with MovableContentRegistry in the SDK.

      • load: MovableRendererLoader<M>

        Imports the kind's module when first needed (MovableRendererLoader).

      • Optionaloptions: MovableRendererOptions<M>

        How the kind is drawn before it loads, and select to pick from the module the component, or a record with the component and the kind's other slots (selection control, commands, ribbon tab, format pane).

      Returns () => void

      A function that removes the registration.

      registerMovableRenderer('map', () => import('./MapRenderer'), { select: (m) => m.MapRenderer });
      // With a selection control of its own:
      registerMovableRenderer('map', () => import('./MapRenderer'), {
      select: (m) => ({ renderer: m.MapRenderer, control: m.MapControl })
      });