Executes all handlers and behaviors of the specified jQuery event.
Type | event |
Require | |
Options | |
Class | Enhavo\Bundle\AppBundle\Action\Type\EventActionType |
Parent | Enhavo\Bundle\AppBundle\Action\AbstractActionType |
type: string default: null
The jQuery event that is manually triggered when the action is clicked.
actions:
event:
type: event
event: myEvent
The event-string “myEvent” represents the jQuery event which has to be present in your project like this general example:
$(document).on("myEvent", function() {
doSomething();
});
type: string default: null
Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
label: myLabel
# ... further option
type: string default: null
Overwrite the default icon. The Icon is part of the clickable button.
actions:
myAction:
icon: myIcon
# ... further option
type: boolean default: false
If value is true, the action must be confirmed again by the user.
actions:
myAction:
confirm: true|false
# ... further option
type: boolean default: true
If this value is true, the form registers changes made and the user must confirm that he wants to continue despite the changes made
actions:
myAction:
confirm_changes: true|false
# ... further option
type: string default: message.close.confirm
Overwrites the default message in the confirm modal window. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
confirm_message: myMessage
# ... further option
type: string default: label.ok
Overwrites the default confirm-button lettering in the confirm modal window. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
confirm_label_ok: myMessage
# ... further option
type: string default: label.cancel
Overwrites the default cancel-button lettering in the confirm modal window. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
confirm_label_cancel: myMessage
# ... further option
type: array default: []
If route is defined, you can overwrite the standard parameters to generate your own url.
actions:
myAction:
route_parameters:
id: $id
type: string default: EnhavoAppBundle
Overwrites the default translationDomain. The selected bundle implements a translation service for automatic translation all translatable designations, e.g. the label
actions:
myAction:
translation_domain: myTranslationDomain
# ... further option
type: string default: null
Defines the minimum access rights a user needs to use this action.
actions:
myAction:
permission: myPermission
# ... further options