Hi everyone,
I was able to figure out a way to enable the autoColumnWidth
flag for the new table component, wanted to share it here in case anyone else would benefit from this until it's generally available in the editor UI.
- Export your app using the
Export to ToolScript ZIP
option - Extract the contents of the .ZIP file you just downloaded
- Open the
main.rsx
file using a text editor like NotePad++ - Your table component will be formatted like "
<Table ...
", you can also search for it by ID (ex: "table1" or "table2") - Add the following line as a property within this component:
autoColumnWidth={true}
- If done correctly, it should look something like this:
<Table
id="table2"
autoColumnWidth={true}
...
>
- Save your changes to the
main.rsx
file - Re-zip the folder
- Upload the .zip file using the
Import app from JSON/ZIP
option - Confirm that it worked by inspecting the table component in the
State
viewer, it should have theautoColumnWidth
property visible astrue