Document Actions

The document-actions key defines actions that are available on a per-document basis. When working on an individual document, this key defines the actions that will appear as operations that can be performed.

The base configuration looks like this:

{
    "config": {
        "document-actions": []
    }
}

Example - Add an Action

{
    "config": {
        "document-actions": [{
            "key": "do-something-awesome",
            "title": "Do Something Awesome",
            "module": "mymodule/actions/do-something-awesome",
            "iconClass": "glyphicon glyphicon-something-awesome",            
            "allowPermission": [
                "update"
            ]
        }]
    }
}