Experimental feature

Action UI affordances

Toggle UI affordances for actions in the Studio

It is possible to prevent a document type from appearing in the Create new dialog, and prevent the Delete-menu action from appearing in the editor (among others) by specifying a set of enabled actions on the schema type.

It is an experimental feature and can be configured on the property __experimental_actions. For example, this is how you would hide affordances for creating and deleting documents of type myDocument:

  type: 'document',
  name: 'myDocument',
  __experimental_actions: [/*'create',*/ 'update', /*'delete',*/ 'publish'], 

Note: this only affects the UI and the documents will still be possible to delete through the API.

Was this article helpful?