new EditableAction(config)
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | The configuration object Properties
|
- Source:
- ui/ui.EditableAction.js
Methods
-
<private> _postExecute()
-
After the action has been executed, the registered function that correspond to the given data type is called.
Implementations of the _postExecuteis expected to be pseudo private and only used internally by the EditableAction.
The request content path and raw data returned by the server are added as the trailing parameters of the _postExecutefunction - Source:
- ui/ui.EditableAction.js
Returns:
- Type
- function
-
<abstract> condition(editable [, extraParams])
-
The condition function that tells if the action could be performed.
Parameters:
Name Type Argument Description editable
Granite.author.Editable The editable on which the action will be performed
extraParams
Object <optional>
Optional parameters needed for the operation
- Source:
- ui/ui.EditableAction.js
Returns:
Returns true if the action could be performed on the passed editable
- Type
- boolean
-
<abstract> execute(editable [, extraParams])
-
The actual action to perform.
Parameters:
Name Type Argument Description editable
Granite.author.Editable The editable on which the action will be performed
extraParams
Object <optional>
Optional parameters needed for the operation
- Source:
- ui/ui.EditableAction.js
Returns:
- Returns a deferred object that is either resolved or rejected depending on the success of the operation
- Type
- $.Promise