GroupBox
#
GroupBox
是一个容器,它将其子元素组合在一个共同的标题下。
属性#
enabled
: (in bool): 默认为 true。当为 false 时,组框无法被按下title
(in string): 作为组框标题的文本。
示例#
import { GroupBox , VerticalBox, CheckBox } from "std-widgets.slint";
export component Example inherits Window {
width: 200px;
height: 100px;
GroupBox {
title: "Groceries";
VerticalLayout {
CheckBox { text: "Bread"; checked: true ;}
CheckBox { text: "Fruits"; }
}
}
}