Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRenderer

A dialog renderer.

Hierarchy

  • IRenderer

Index

Methods

createBody

  • createBody(body: Body<any>): Widget
  • Create the body of the dialog.

    Parameters

    • body: Body<any>

      The input value for the body.

    Returns Widget

    A widget for the body.

createButtonNode

  • createButtonNode(button: IButton): HTMLElement
  • Create a button node for the dialog.

    Parameters

    Returns HTMLElement

    A node for the button.

createCheckboxNode

  • createCheckboxNode(checkbox: ICheckbox): HTMLElement
  • Create a checkbox node for the dialog.

    Parameters

    Returns HTMLElement

    A node for the checkbox.

createFooter

  • createFooter(buttons: readonly HTMLElement[], checkbox: HTMLElement): Widget
  • Create the footer of the dialog.

    Parameters

    • buttons: readonly HTMLElement[]

      The button nodes to add to the footer.

    • checkbox: HTMLElement

      The checkbox node to add to the footer.

    Returns Widget

    A widget for the footer.

createHeader

  • createHeader<T>(title: Header, reject: () => void, options: Partial<IOptions<T>>): Widget
  • Create the header of the dialog.

    Type parameters

    • T

    Parameters

    • title: Header

      The title of the dialog.

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

    • options: Partial<IOptions<T>>

    Returns Widget

    A widget for the dialog header.

Generated using TypeDoc