The default implementation of a dialog renderer.

Hierarchy

  • Renderer

Constructors

Methods

  • Create the body of the dialog.

    Parameters

    • value: Body<any>

      The input value for the body.

    Returns Widget

    A widget for the body.

  • Create a button node for the dialog.

    Parameters

    Returns HTMLButtonElement

    A node for the button.

  • Create a checkbox node for the dialog.

    Parameters

    Returns HTMLElement

    A node for the checkbox.

  • Create the footer of the dialog.

    Parameters

    • buttons: readonly HTMLElement[]

      The buttons nodes to add to the footer.

    • checkbox: HTMLElement

      The checkbox node to add to the footer.

    Returns Widget

    A widget for the footer.

  • Create the header of the dialog.

    Type Parameters

    • T

    Parameters

    • title: Header

      The title of the dialog.

    • Optional reject: (() => void)
        • (): void
        • Returns void

    • Optional options: Partial<Dialog.IOptions<T>>

    Returns Widget

    A widget for the dialog header.

  • Create the class name for the button icon.

    Parameters

    • data: IButton

      The data to use for the class name.

    Returns string

    The full class name for the item icon.

  • Create the class name for the button.

    Parameters

    • data: IButton

      The data to use for the class name.

    Returns string

    The full class name for the button.

  • Render an icon element for a dialog item.

    Parameters

    • data: IButton

      The data to use for rendering the icon.

    Returns HTMLElement

    An HTML element representing the icon.

  • Render the label element for a button.

    Parameters

    • data: IButton

      The data to use for rendering the label.

    Returns HTMLElement

    An HTML element representing the item label.

Generated using TypeDoc