Classes

Methods

# Form (cfg:  object) → UForm static

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

Arguments:
  • cfg: object
    • component:  Vue.Component

      Form component

    • rootComponent:  Vue.Component

      Alias for cfg.component

    • props:  object

      Form component props

    • title:  string

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

    • entity:  string

      Entity name for master record

    • instanceID:  number

      Instance ID

    • isModal:  boolean

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

    • openInBackgroundTab:  boolean

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

    • modalClass:  string

      Modal class

    • modalWidth:  string

      Modal width

    • formCode:  string

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

    • tabId:  string

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

    • target:  object

      Optional target. Used for render form into form

    • isCopy:  boolean

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