document-is-file

If the document is a file (as opposed to a folder).

{
    "evaluator": "document-is-file"
}

Example

This block, taken from the Configuration docs, adds a custom-preview-in-website document action. If the user were looking at a file, this block would be included since it has a document-is-file evaluator.

{
    "evaluator": "document-is-file",
    "config": {
        "document-actions": [{
            "id": "custom-preview-in-website"
        }]
    }
}

See also