A Utilities class.

Implements

Constructors

Properties

localizer: ILocalizer
messager: IMessager

Methods

  • The container toggler factory method. Equips a button and a container element with toggle functionality.

    Parameters

    • btnId: string

      the id selector of the button

    • uiId: string

      a view id selector

    • startState: boolean

      the start state (true for active)

    Returns IToggler

  • Gets an option.

    This extracts the option without translating it.

    Parameters

    • id: string

      the id of the object, can be a window

    • option: string

      the option name

    Returns string

    the changed option as html string

  • Loads a formula file from the 'formulas' folder.

    Parameters

    • panelId: string

      the id of the panel

    Returns Promise<string>

    the loaded HTML from the file

  • Used to localize an option.

    The option is part of a bigger easyui object like dialog, panel, window. Originally it was meant to change the title of an object because that object was newly created in code.

    Parameters

    • id: string

      the id of the object, can be a window

    • option: string

      the option name

    Returns string

    the changed option as html string