How to resize a layout cell

I se how to initially set the size in the config. But how to change width later?

I found answers for previous suites, but can’t find the answer for Suite 8.

Thanks,
Max

Hello.

You may add the resizable property to your layout cell:

to add the possibility to resize it manually dragging the resize knob by the mouse. Here is the example demonstrating the process

What the resizing by the API you may mutate the layout cell config to update its sizes. LIke:

layout.getCell(cellId).config.width= "50%"
layout.paint()

Here is the example:
https://snippet.dhtmlx.com/n7411t7o

Thank you. I was only looking for the API method. What I was missing was the “config” part.

Is this in the documentation other than the snippet example? I thought it looked thoroughly.

But thanks,
Max

config part is the second propety of the layout constructor:

Actually, its mutating is not a legal solution, but as long as it works it can help you to solve this issue.