I didn't find any way, to set initial config in the table, except for the use of custom renderer.
Is there more easy and clear solution ?
| Tech | Version |
|--------------|---------|
| Material-UI | 2.8.1 |
| React | 16.9 |
Look in the Usage second of the docs. It shows a column array you can use that has some of those parameters set (specificaly the "customize columns" part).
@MellowoO I think you are looking for table options and/or column options like these, correct?
(Table options)
(Column options)


If so, have a look through the docs and see if it's missing something you need.
@gabrielliwerant hi!
Yes, you are right
But for example, if i need to specify initial sort column
const columns = [
{
name: "name",
label: "Name",
options: {
filter: true,
sort: true,
}
},
{
name: "company",
label: "Company",
options: {
filter: true,
sort: true,
}
},]
I want to display "sort arrow" icon on name column by default
Can i do this?
@gabrielliwerant or set any selected by default filters
In that case, I think what you're looking for is this (also in column options):

Note that only the first column will take a default direction and the rest will be ignored (since multiple columns can't be sorted independently, as they affect each other).
Thank you)
Most helpful comment
In that case, I think what you're looking for is this (also in column options):
Note that only the first column will take a default direction and the rest will be ignored (since multiple columns can't be sorted independently, as they affect each other).