Show:
Module: form
Parent Module: mixins

Form is used for one record to create, update and delete only support native style class component

Table of Contents

Methods

validate () Boolean

validate current model

Returns:

Boolean:

Returns true when success, false when fails

Properties

model

Object

single object, normally for form

modelName

String

reason

String

ajax fail reason

store

Object

orm store service

Events

cancel

cancel current operation

fail

fail ajax request success callback

Event Payload:

  • action String

    The current operation: create, update, delete

  • reason Object

    The ajax request response

remove

delete triggle when user click save action

save

save triggle when user click save action

succuess

success ajax request success callback

Event Payload:

  • action String

    The current operation: create, update, delete

  • data Object

    The response data from backend server