Type alias PanelConfig

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

Configuration for Panel.show

Type declaration

  • Optional clickHandler?: ((target) => void)
      • (target): void
      • called when the user clicks inside the panel or presses the Enter key while an element focused

        Parameters

        • target: HTMLElement

        Returns void

  • content: string

    HTML content of the panel

  • Optional id?: string

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

  • Optional noMargin?: boolean

    remove the default margins

    Default

    false
    
  • Optional width?: string

    initial width

Generated using TypeDoc