Classes

Methods

# Form (cfgobject) → UForm static

Creates a new instance of UI module what can be visualized in the application shell using mount*() call

Arguments:
  • cfg: object
    • componentVue.Component

      Form component

    • rootComponentVue.Component

      Alias for cfg.component

    • propsobject

      Form component props

    • titlestring

      Form title. Can contain macros {attrName}, such macros will be replaced by attributes values. Example - ({code}) {name}

    • entitystring

      Entity name for master record

    • instanceIDnumber

      Instance ID

    • isModalboolean

      If true form will be displayed inside modal dialog. Otherwise - in tab (default)

    • openInBackgroundTabboolean

      If true - the tab with a newly opened form does not become active

    • modalClassstring

      Modal class

    • modalWidthstring

      Modal width

    • formCodestring

      Required to provide form code for form constructor button in toolbar and for correct tabID generation

    • tabIdstring

      Optional tabId. If omitted will be calculated using entity code and instanceID

    • targetobject

      Optional target. Used for render form into form

    • isCopyboolean

      Required isCopy. Used for create new record with data of existing record