• Create enriched element for interaction.

    Parameters

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

      Element configuration

      • Optionalbroken?: boolean

        Is this broken?

      • Optionalclick?: boolean

        Is this a clickable element?

      • Optionaldrag?: boolean

        Is this draggable element?

      • handler: string
      • Optionalicon?: string

        Font Awesome icon classes

      • Optionallabel?: string

        Prefix label for the element

      • Optionaloptions?: Record<string, string>

        Additional options set as dataset elements.

    Returns HTMLElement

    • The element.