Show:
Module: form
Parent Module: mixins

GodForm is used for data list to create, update and delete children object only support native style class component

Table of Contents

Properties

loading

Boolean

for loading

modalShow

Boolean

for modal dialog

model

Object

data set, normally array

modelName

String

reason

String

ajax fail reason

selectedItem

Object

current selected item

store

Object

orm store service

Events

add

create new record according to modelName

cancel

cancel current operation

deleteObject

delete object from backend server

Event Payload:

  • selectedItem Object

    The current selected item

edit

edit current selected item

Event Payload:

fail

fail ajax request success callback

Event Payload:

  • action String

    The current operation: create, update, delete

  • reason Object

    The ajax request response

  • selectedItem Object

    Thc current selected item

remove

remove current selected item

Event Payload:

success

success ajax request success callback

Event Payload:

  • action String

    The current operation: create, update, delete

  • data Object

    The response data from backend server

  • selectedItem Object

    Thc current selected item