Documents - List Buttons

The documents-list-buttons key defines actions that are available at buttons at the top of the documents browsing page. These actions are defined relative to the currently viewed document or folder.

The base configuration looks like this:

{
    "config": {
        "documents-list-buttons": []
    }
}

Default Configuration

The base configuration looks like this:

{
    "config": {
        "documents-list-buttons": [{
            "key": "new",
            "title": "Actions...",
            "iconClass": "fa fa-magic",
            "align": "left",
            "allowPermission": [
                "read"
            ],
            "buttons": [...]
        }]
    }
}

## Example - Add an Action to the Actions dropdown

Here we register a new button under the `new` button (which is the Actions dropdown from above).
This action might do something like create sample content within the currently viewed folder:

{ "config": { "document-list-buttons": [{ "key": "new", "buttons": [{ "key": "create-sample-content", "title": "Create Sample Content", "module": "mymodule/actions/create-sample-content", "iconClass": "glyphicon glyphicon-file",
"allowPermission": [ "create_subobjects" ] }] }] } }