Mount helpers for Vue components
Methods
# baseBeforeClose (store: Store, close: function) inner
Check form isDirty, and is so - ask user to save od discard changes or continue to edit
# baseSaveAction (store: Store) inner
Returns the base save action.
Arguments:
store: StoreStore returns {Function|null} A bound
dispatch('save')function ornullif the action does not exist
# bindInstanceToParentDestroy (element: HTMLElement, instance: Vue) inner
Arguments:
element: HTMLElementinstance: Vue
# getEntityName (cfg) inner
Arguments:
cfg:
# 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: 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: Vuex.StoreStore
title: stringTitle
validator: ValidatorValidator
modalId: stringModal id, needed for detect same dialog and show/maximize if it was hidden/minimized
modalClass: stringModal class
modalWidth: stringModal width
provide: objectRegular object which provide all props what passed in it
beforeClose: functionCallback, called before form is closed (not forcefully). This implementation will replace the standard one, which asks the user to save or discard changes or continue to edit
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
modalTypetarget
# 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: 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 activebeforeClose: functionCallback, called before form is closed (not forcefully). This implementation will replace the standard one, which asks the user to save or discard changes or continue to edit
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
iconClscommandConfig
# 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
uiSettingKey: stringUsed as a key part for storing table UI settings (ordering, column widths and visibility) into local storage. If empty (default) columns is not configurable
Command config
# mountTableEntityAsModal (cfg: object) inner
Run UMasterDetailView as modal
# mountTableEntityAsTab (cfg: object) inner
Run UMasterDetailView as tab
# showConfirmationDialog (args: object) inner
Show confirmation dialog
