Skip to content

A multilayer dependency that provides a menu entry in the Administration window and a layout which can contain “demo actions”, which is to say actions that are related to managing the demo instance, not actions that are part of the demo. An example would be a “demo reset” action.

Notifications You must be signed in to change notification settings

nuxeo-sandbox/demo-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

demo-actions

This is a Nuxeo Studio Project to be used as a multi-layer dependency. The code is being stored in GitHub using the External Source Repository feature.

This project adds a menu entry in the Administration interface and a layout that can contain “demo actions”, which is to say actions that are related to managing the demo instance, not actions that are part of the demo. An example would be a “demo reset” action.

Configuration

Contribute your content to the DEMO_ACTIONS slot. It will be listed on the page under Administration -> Demo Actions. You can use the built-in da-demo-action element, which provides a button (label required) and a description:

<nuxeo-slot-content name="demoActionOne" slot="DEMO_ACTIONS">
  <template>
    <da-demo-action label=”My Label” description=”My Description” operation="javascript.myopp"></da-demo-action>
  </template>
</nuxeo-slot-content>

da-demo-action provides ability to display the JSON response from the operation. If you need more complex return handling, use a custom element.

For custom contributions, it’s recommended to surround your contribution with a nuxeo-card, e.g.:

<nuxeo-slot-content name="demoActionOne" slot="DEMO_ACTIONS">
  <template>
    <nuxeo-card>
      <!-- Your stuff -->
    </nuxeo-card>
  </template>
</nuxeo-slot-content>

Of course you can use your own custom element as well.

About

A multilayer dependency that provides a menu entry in the Administration window and a layout which can contain “demo actions”, which is to say actions that are related to managing the demo instance, not actions that are part of the demo. An example would be a “demo reset” action.

Resources

Stars

Watchers

Forks

Packages

No packages published