I have a table to display data containing an unknown number of columns, which get named 0-n by Retool based on the column position in the data returned.
Can I use dynamic table settings to map these names e.g. "0" to display titles e.g. "User ID"? If so, I can't see it in the docs.
Thanks.
Hi Matus, currently you would click on the table and drag the column to resize it.
We are always working on improving our table component, so hopefully there will be other ways you can resize it in the future!
It's currently not possible to make a table column editable through code. This can only be done with the UI.
There is a columnEditable field defined as:
"An object representing any table columns configured as editable, with a key as the column name and a value of true"
However, changing one of the values to false or adding new columns doesn't work.
Object.values(table1.columns).forEach(
row => {
table1.columnEditable[row] = true;
}
);
Adding this feature would be useful especially if thβ¦
Hello, there are so many request about dynamic column setting. please pay attention to it.
I add to above
[{
name: "cost_per_event"
,label: "Cost per Event"
,type: "numeric"
,order: 0,
editable: true,
width: 23
},{
name: "other_metric"
,label: "Something Entirely Different"
,type: "integer"
,order: 1,
editable: true,
width: 23
}]
Thanks in advance.
1 Like