ID:1029230
 
Is it possible to have text sent to a grid cell wrap to the next line down? I'm sending a list of values to a grid, which works perfectly, except if one of the items is too long for the window it just cuts off at the edge.
If the grid is a set size and will not change, you just need to figure out roughly how much text can fit per line, then use:

if(length(text) > max_text_per_line)


Then from there, use copytext to output the max that can fit on one line, then grab the remaining text and output it to either the next cell or using <'br'>, which will move the text to then next line.

If the grids can be resized, then you'll want to use winget to determine the size of the grid, and then from there you'll need to do some math to find out how much text will fix (by pixel) and repeat the same thing you'd do if the text didn't resize.

It's not exactly an easy process in my opinion.