cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to hide column in spreadsheet component using css attribute selectors

robert_tullius
Explorer
0 Kudos
236

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

View Entire Topic
robert_tullius
Explorer
0 Kudos

Dear all,

for some reasons it works now. Maybe I just looked on the wrong column. The first column has index 0.

Regards,

Robert