Imperative Resize
Programmatically resize panes from the server using the resize event.
Push a resize
event with pane_id
and size
to resize a pane.
The size is clamped to respect min_size
and max_size
constraints.
Resizable Pane
Other Pane
Usage
def handle_event("resize_pane", _, socket) do
socket = push_event(socket, "resize", %{
pane_id: "my_pane_id",
size: 30
})
{:noreply, socket}
end