Skip to content

Remove some columns but make it available via "Add column..." #485

Answered by sgratzl
rsakai asked this question in Q&A
Discussion options

You must be logged in to vote

when you create lineup using the builder you can define how the ranking is being built.

e.g. in

const ranking = LineUpJS.buildRanking()
.supportTypes()
.allColumns() // add all columns
.groupBy('cat')
.sortBy('a', 'desc')
.impose('number', 'a', 'cat2'); // create composite column

it creates a custom ranking with a specific sorting and a defined set of columns. I assume in your case only the "defaultRanking" is created which adds all available columns by default.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsakai
Comment options

Answer selected by rsakai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants