slint/sixtyfps_compiler/tests/basic/layout.60
Olivier Goffart 96a372e45d Grid layout in the interpreter
current imploementation is just a prototype
2020-06-10 19:40:47 +02:00

19 lines
No EOL
301 B
Text

X := Rectangle {
lay := GridLayout {
property<string> foo: "hello";
Row {
Text { text: lay.foo; }
Text {}
}
Row {Text {}}
Text{
Row {}
// ^error{Row can only be within a GridLayout element}
}
}
}