Mount helpers for Vue components
Methods
# beforeClose (store: Store, close: function) inner
Check form isDirty, and is so - ask user to save od discard changes or continue to edit
# bindInstanceToParentDestroy (element: HTMLElement, instance: Vue) inner
Arguments:
element
: HTMLElementinstance
: Vue
# mountContainer (cfg: object) inner
Mount form directly into html container
Arguments:
cfg
: objectcomponent
: Vue.ComponentForm component
props
: objectForm component props
mixins
: Array.<object>Form component mixins
store
: window.Vuex.StoreStore
provide
: objectRegular object which provide all props what passed in it
target
: Ext.component | StringEither id of html element or Ext component
validator
: Validatorvalidator
onClose
: functionAsync callback, called (and awaited) before form is destroyed with 2 args: (ID: number|null, store: Vuex.Store); In case form is in isNew state, ID value is null, otherwise - an ID from store
# mountModal (cfg: object) inner
Mount form in modal. Provide isModal: true
to the child components, child components can inject it as parentIsModal
Arguments:
cfg
: objectcomponent
: Vue.ComponentForm component
props
: objectForm component props
mixins
: Array.<object>Form component mixins
store
: window.Vuex.StoreStore
title
: stringTitle
validator
: ValidatorValidator
modalClass
: stringModal class
modalWidth
: stringModal width
provide
: objectRegular object which provide all props what passed in it
onClose
: functionAsync callback, called (and awaited) before form is destroyed with 2 args: (ID: number|null, store: Vuex.Store); In case form is in isNew state, ID value is null, otherwise - an ID from store
# mountTab (cfg: object) inner
Mount form in tab
Arguments:
cfg
: objectcomponent
: Vue.ComponentForm component
props
: objectForm component props
mixins
: Array.<object>Form component mixins
store
: window.Vuex.StoreStore
title
: stringTitle
tabId
: stringnavbar tab ID
validator
: ValidatorValidator
uiTag
: stringOptional UI Tag for tracking subsystem
provide
: objectRegular object which provide all props what passed in it
openInBackgroundTab
: booleanIf
true
- the tab with a newly opened form does not become activeonClose
: functionAsync callback, called (and awaited) before form is destroyed with 2 args: (ID: number|null, store: Vuex.Store); In case form is in isNew state, ID value is null, otherwise - an ID from store
# mountTableEntity (cfg: object) inner
Mount UMasterDetailView
Arguments:
cfg
: objectprops
: objectProps data
tabId
: objectTab id
uiTag
: stringOptional UI Tag for tracking subsystem
title
: stringTab title. Can contain macros
{attrName}
, such macros will be replaced by attributes valuesprops
: objectUMasterDetailView props
scopedSlots
: TableScopedSlotsBuilderScoped slots
isModal
: booleanIs modal
shortcutCode
: stringShortcut code
Command config
# mountTableEntityAsModal (cfg: object) inner
Run UMasterDetailView as modal
# mountTableEntityAsTab (cfg: object) inner
Run UMasterDetailView as tab