Bug 506988 - Add the possibility to hide Widgets
Summary: Add the possibility to hide Widgets
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 496072
Blocks:
  Show dependency tree
 
Reported: 2016-11-03 11:21 EDT by Jacob Geisel CLA
Modified: 2018-01-18 11:21 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Geisel CLA 2016-11-03 11:21:34 EDT
Up to now it is possible to conditionally hide groups. 
It would be nice if this functionallity could be extended to the widgets and to add a preconditionExpression for deciding whether to show or not a Widget.
Comment 1 Jacob Geisel CLA 2016-11-03 12:00:05 EDT
There is a way to work around this using dynamic mappings and iterating over the currrent element:

<controls xsi:type="properties:DynamicMappingFor" iterator="it" iterableExpression="aql:OrderedSet{self}">
  <ifs predicateExpression="aql:self.isMyCondition()">
    Your widget here
  </ifs>
</controls>
Comment 2 Laurent Redor CLA 2016-11-08 03:46:44 EST
Thanks for your detailed enhancement submit.
We agree that it would be an interesting improvement.
Nevertheless, we have currently not planned to work on it in the following releases.