• Create enriched element for interaction.

    Parameters

    • config: {
          broken: undefined | boolean;
          click: undefined | boolean;
          drag: undefined | boolean;
          handler: string;
          icon: undefined | string;
          label: undefined | string;
          options: undefined | Record<string, string>;
      } = {}

      Element configuration

      • broken: undefined | boolean

        Is this broken?

      • click: undefined | boolean

        Is this a clickable element?

      • drag: undefined | boolean

        Is this draggable element?

      • handler: string
      • icon: undefined | string

        Font Awesome icon classes

      • label: undefined | string

        Prefix label for the element

      • options: undefined | Record<string, string>

        Addional options set as dataset elements.

    Returns HTMLElement

    • The element.

Generated using TypeDoc