Q&A
How can I add a menu to my application header?
Specify the view that provides the menu for the application
(see the application configurationmenuproperty).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?
Add the class
av-view-context-menuto the DOM element inside the view in which the context menu should work.Define the getSelection method for your view (not for the application).
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?
Create the new action (see Actions API).
Export the action as a feature.
Define the action binding to the context menu of the application:
Specify
contextMenuinplacesSpecify
view idasfilterview idis the id of the application view that provides the application menu
(see the application configurationmenuproperty).
Export the action binding as a feature.
How can I add the application state to the deeplink?
- The application should implement the method getContext.
- The application should trigger the event appStateChange.
How can I open the context in another app?
- The application should trigger the event appContextChange.
How can I restore an application from a deeplink?
- The application should implement the method setContext.