Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Unable to hide column in spreadsheet component using css attribute selectors

$
0
0

Dear all,

 

I just started using the spreadsheet component in a planning scenario and I want to get rid of some columns that are required in the data model but have no value for the user. They just take away space in my application.

 

I found out that each cell within the spreadsheet component has attributes defining their x and y position, e.g.:

<td tabindex="0" title="EUR" class="dimMember general generalCell row-indent-0 rowDimMemberCell" x="5" y="2" editable="false" mbrctx="0/0/0/0/0"><span class="dimMemberLeaf dimMemberIcon"></span>EUR</td>

 

Now using css I should be able to hide column 5 using:

[x="5"] {

    display:none !important;

}

 

Unfortunately this has no effect. I also tried versions like [x=5], [x~="5"], ...

 

What does work, but hides all columns, is:

[x] {

    display:none !important;

}

 

So does anyone have an idea what the problem of my approach is?

 

Thanks and regards,

Robert


Viewing all articles
Browse latest Browse all 2878

Trending Articles