Skip to main content

Module resizable

Module resizable 

Source
Expand description

Resizable Panel Component (shadcn/ui style)

Resizable panel groups with draggable handles between panels.

use armas_basic::prelude::*;

let panels = vec![
    ResizablePanel::new(0.25),
    ResizablePanel::new(0.75),
];
let mut resizable = Resizable::new("split", ResizableDirection::Horizontal);
resizable.show(ui, &panels, |ui, index| {
    ui.label(format!("Panel {}", index + 1));
});

Structs§

Resizable
Resizable panel group — panels separated by draggable handles.
ResizablePanel
Configuration for a single panel in a resizable group.
ResizableResponse
Response from a resizable panel group.

Enums§

ResizableDirection
Direction of the resizable panel group.