Bug 564157 - Add conditional style for the first column
Summary: Add conditional style for the first column
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Table (show other bugs)
Version: 6.3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-06-10 04:13 EDT by Axel RICHARD CLA
Modified: 2021-05-05 09:35 EDT (History)
2 users (show)

See Also:


Attachments
TablesWithSpecificLineHeader.png (53.14 KB, image/png)
2020-06-11 09:06 EDT, Laurent Redor CLA
no flags Details
SimpleEcoreTable.zip (4.31 KB, application/x-zip-compressed)
2020-06-11 09:06 EDT, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel RICHARD CLA 2020-06-10 04:13:13 EDT
It could be interesting to add conditional style on the first column of Sirius tables.

Today the conditional style can only be applied on the other columns or on rows.
Comment 1 Laurent Redor CLA 2020-06-11 09:06:24 EDT
Created attachment 283231 [details]
TablesWithSpecificLineHeader.png
Comment 2 Laurent Redor CLA 2020-06-11 09:06:45 EDT
Created attachment 283232 [details]
SimpleEcoreTable.zip
Comment 3 Laurent Redor CLA 2020-06-11 09:08:35 EDT
There is currently a workaround that can be used for this need.
You can set to "-1" the width of the "line header" column (in the "Advanced" properties tab of the table description). As result, this column is hidden. You have just to add a new "feature column" to "replace" the "line header" column (with the name for example). As this column is a "standard" column, you benefit of all features (conditionnl style, ...).
Limitation: The icon displayed in "line header" column is no longer displayed in the "feature column".

If there are sub-lines, you have to set the width to something like "21" to have the "toggle" icon visible (to collapse or to expand lines).

The "TablesWithSpecificLineHeader.png" shows a sample of what it is look like. The project used for this sample is available in "SimpleEcoreTable.zip".