Automatic size in custom table columns

Viewed 25

I have made this fully custom data table to display some content dynamically, you can manually change column size and order, doing so all cells are on absolute positioning with set width.

I want to create a function that will check for the "best size" for columns depending on the contents. Like you would do in Excel for example when you double tap on a column separator (some columns will have long descriptions inside, some just links, etc.).

Cell will only contains texts, it can be wrapped (actually goes into ellipsis when resizing to small) and the rows allow for horizontal scrolling so there is no limitation on this side.

But so far I have no clue on how I can manage to do that, do you have any lead ?

enter image description here

0 Answers
Related