Class: CRUDGenericActionUpdate

CRUDGenericActionUpdate

Generic CRUD Update action class

new CRUDGenericActionUpdate()

Members


<static> ACTION


<static> MODEL_ACTION_GET


<static> MODEL_ACTION_PUT


<static> breadcrumbsTails

Libarary of breadcrumbs tails strings templates

<static> deafultBreadcrumbsTail

Default breadcrumbs tail template string

Methods


<static> bindUIEvents(controller, params, response)

Binds events to action UI
Parameters:
Name Type Description
controller object instance of controller
params Array.<string> list of route params
response object API response

<static> isUIRendered(controller)

true, if UI of this action already exists, false, if UI of this action wasn't existed and other UIs were destoryed
Parameters:
Name Type Description
controller object instance of controller
Returns:
true if UI of this action exists, false if UI of other was destroyed
Type
boolean

<static> prepareUIOptions(controller, response)

Creates object with all options needed to initialize UI component
Parameters:
Name Type Description
controller object instance of controller
response object API reponse object
Returns:
ui options object
Type
object

<async, static> run(controller, params)

Performing action preparation and renders UI
Parameters:
Name Type Description
controller object instance of controller
params Array.<string> list of route params
Returns:
Type
undefined