PanelConfig: {
    clickHandler?: ((target: HTMLElement) => void);
    content: string;
    id?: string;
    noMargin?: boolean;
    width?: string;
}

Configuration for Panel.show

Type declaration

  • OptionalclickHandler?: ((target: HTMLElement) => void)

    called when the user clicks inside the panel or presses the Enter key while an element focused

      • (target): void
      • Parameters

        • target: HTMLElement

        Returns void

  • content: string

    HTML content of the panel

  • Optionalid?: string

    unique identifier to use with Panel.hide and Panel.isVisible and to store the width

  • OptionalnoMargin?: boolean

    remove the default margins

    false
    
  • Optionalwidth?: string

    initial width