<globalview/>

<globalview/>

Description

The global view element is used to define global actions within an application. Global actions appear in the top right of an application.

Global views have the following limitations:

  • Can’t define an init function

  • Can’t define a destroy function

  • Can’t define any value that is specific to view rendering (such as hiding menu etc)

  • Can only contain global actions

Global actions have the following limitations:

  • Can only be added to global views

  • Global actions are similar to view actions in terms of DSL functionality.

Example

<?xml version="1.0" encoding="UTF-8"?> <ui xmlns="http://uiprogram.mezzanine.com/View" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://uiprogram.mezzanine.com/View View.xsd"> <globalview label="menu_item.dashboard" unit="Globals"> <globalAction label="action.survey" action="navigateToSurvey" pill="button_examples.pill_text" tooltip="tooltip"> <visible function="getShowSurvey"/> <appearance function="getAppearance"/> <variant function="getButtonVariant"/> <pillVariant function="getButtonPillVariant"/> </globalAction> </globalview> </ui>