Q&A

How can I add a menu to my application header?

  1. Specify the view that provides the menu for the application
    (see the application configuration menu property).

  2. Optional: If there is no action bound to your view yet, define the action and bind it to your view to check if the menu works.

How can I add a context menu to my application view?

  1. Add the class av-view-context-menu to the DOM element inside the view in which the context menu should work.

  2. Define the getSelection method for your view (not for the application).

  3. Optional: If there is no action bound to your view yet, define the action and bind it to your view to check if the context menu works.

How can I add a menu item to an existing context menu in an application?

  1. Create the new action (see Actions API).

  2. Export the action as a feature.

  3. Define the action binding to the context menu of the application:

    • Specify contextMenu in places

    • Specify view id as filter

      view id is the id of the application view that provides the application menu
      (see the application configuration menu property).

  4. Export the action binding as a feature.

  1. The application should implement the method getContext.
  2. The application should trigger the event appStateChange.

How can I open the context in another app?

  1. The application should trigger the event appContextChange.
  1. The application should implement the method setContext.