Hierarchy (View Summary)

Constructors

  • Adds a menu icon with tooltip to the title bar

    Parameters

    • config: {
          buttons?: object[];
          columns?: any;
          doc?: any;
          footer?: boolean;
          height?: any;
          maxHeight?: any;
          position?: integer[];
          title?: string;
          width?: any;
      }

      The css classs of the icon (space delimited).

      • Optionalbuttons?: object[]

        A list of of objects which should contain text (the button's label) and method (the name of the method to call when the button is clicked) e.g [{text:"OK",method:"doSomething"}] - the method 'doSomething' needs to be in the subclass. Buttons are added to the footer, so this needs to also be specified in the config

      • Optionalcolumns?: any

        An integer which will divide the dialog into equally sized vertical columns, which can be accessed with this.columns array

      • Optionaldoc?: any

        The document to attach the dialog to

      • Optionalfooter?: boolean

        If true - a footer will be added and can be accessed with this.footer

      • Optionalheight?: any

        The height of the dialog (in pixels)

      • OptionalmaxHeight?: any

        if no height is specified, the the dialog will fit its contents, unless maxHeight is given

      • Optionalposition?: integer[]

        The x and y psoition (in the document's body) If absent, the dialog will be placed in the middle of the screen

      • Optionaltitle?: string

        The dialog title

      • Optionalwidth?: any

        The width of the dialog (in pixels)

    • Optionalcontent: null | object

      The object passed to the init method

    Returns BaseDialog

Properties

_closed: boolean = false
buttons: {}
columns: undefined | any[]
config: {
    buttons?: object[];
    columns?: any;
    doc?: any;
    footer?: boolean;
    height?: any;
    maxHeight?: any;
    position?: integer[];
    title?: string;
    width?: any;
}
dialog: HTMLDivElement
footer: undefined | HTMLDivElement
header: HTMLDivElement
observable: { container: any }
outer: HTMLDivElement
experiment: { [k: string]: unknown }

Methods

  • This method should be overridden to add content to the dialog

    Parameters

    • content: any

    Returns void

  • This method should be overridden if the layout needs updating on resize

    Parameters

    • x: integer

      the new width of the dialog

    • y: integer

      the new height of the dialog

    Returns void