GroupBox
A GroupBox is a container that groups its children together under a common title.
Properties
title(in string): A text written as the title of the group box.style(in GroupBoxStyle): Defines the style of the group box.border_style(out BorderStyle): Gets the style of the background border.title_style(out TextStyle): Gets the style of the title of the group box.
Example
import { GroupBox , MagicVerticalBox, CheckBox } from "@vivi/magic.slint";
export component Example inherits Window {
width: 200px;
height: 100px;
GroupBox {
title: "Groceries";
VerticalLayout {
CheckBox { text: "Bread"; checked: true ;}
CheckBox { text: "Fruits"; }
}
}
}