Form-submit action that delegates to a named JavaScript function registered with the content type system. Registered under the XML action alias "jsAction". When invoked, it calls the configured function through ContentTypes.executeJs, passing the posted form parameters and the asset container; if the function returns an AssetView, that view is used as the rendered response. The privilege required to invoke the action is fixed at construction time.
Group: Content
Implements: AssetAction, ContentTypesInitable
Properties
| Property | Returns | Description |
|---|---|---|
| description | String | Short label for this action, naming the JavaScript function it calls. |
| function | String | Name of the JavaScript function that is called when this action processes a form submission. |
| requiredPriviledge | Priviledge | Privilege a caller needs to invoke this action, as fixed when the action was constructed. |
Methods
getFunction()
Returns: String
Name of the JavaScript function that is called when this action processes a form submission.
getDescription()
Returns: String
Short label for this action, naming the JavaScript function it calls.
getRequiredPriviledge()
Returns: Priviledge
Privilege a caller needs to invoke this action, as fixed when the action was constructed.