-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
The system should implement a way to define a a menu validation based on an expression that contains a property, an operator and a expected value.
For instance, ${myproperty}=="true" would validate a <visibility> or <visibility> node only if the value of property myproperty is set to the value true.
The attribute sugested for specifying an expression would be propertyexpression.
For instance:
<visibility propertyexpression=""%{myproperty}" == """ />This kind of validation would allow the application to support "exclusive menus". For instance, in a 2 menu scenario, the application would be able to only show one of the two menus at a time.
For instance, the following could be implemented:
<menu name="A">
<visibility propertyexpression=""%{next_menu}" == "" || "%{next_menu}" == "A"" />
<actions>
<!--Do something meaningful-->
<!--Change the property to only show B.-->
<property name="next_menu" value="B" />
</actions>
</menu>
<menu name="B">
<visibility propertyexpression=""%{next_menu}" == "B"" />
<actions>
<!--Do something meaningful-->
<!--Change the property to only show C.-->
<property name="next_menu" value="C" />
</actions>
</menu>
<menu name="C">
<visibility propertyexpression=""%{next_menu}" == "C"" />
<actions>
<!--Do something meaningful-->
<!--Change the property to only show A.-->
<property name="next_menu" value="A" />
</actions>
</menu>Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request