microsoft / PowerBI-visuals-TableSorter

Table Sorter custom visual for PowerBI
MIT License
27 stars 19 forks source link

Add option to hide the "Rank" column. #24

Open Ritzlie opened 7 years ago

Ritzlie commented 7 years ago

I have an object in My application using Visual tablesorter, but I want to eliminate rank column on visual tablesorter. How can to remove or hide the rank column that existed at tablesorter? tablesorter

thank you

stopyoukid commented 7 years ago

We do not currently support the ability to hide the Rank column. We will add the option to hide the rank column as a future feature request.

Ritzlie commented 7 years ago

Sorry for asking again, I need to remove the colum rank, can help me how to remove the colum rank by modifying the table sorter form your code? thank You

stopyoukid commented 7 years ago

A quick and dirty fix to make this work in the meantime without too much code is to add

.grid {
    transform: translateX(-50px);
    width: calc(100% + 50px);
}

to this scss file here: https://github.com/Microsoft/PowerBI-visuls-TableSorter/blob/develop/src/powerbi/css/TableSorterVisual.scss#L26

What this does is actually move the rank column off screen, and makes the width of the grid larger to compensate for it.

rahulb99 commented 3 years ago

Are you @stopyoukid working on this feature request?

stopyoukid commented 3 years ago

I am not. However, we are happy to review PRs for this feature.

KryptoKasia commented 2 years ago

@stopyoukid do you know where should I use the dirty fix? Can you give more detailed intruction where to implement it? I have created my own rank and really need to get rid of the old rank in the power bi report