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

PropertyReturnsDescription
descriptionStringShort label for this action, naming the JavaScript function it calls.
functionStringName of the JavaScript function that is called when this action processes a form submission.
requiredPriviledgePriviledgePrivilege 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.