We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d79c80 commit c37475eCopy full SHA for c37475e
ui/appwindow.slint
@@ -1,16 +1,16 @@
1
import { Button, VerticalBox } from "std-widgets.slint";
2
3
-export AppWindow := Window {
4
- property<int> counter: 42;
+export component AppWindow inherits Window {
+ in-out property<int> counter: 42;
5
callback request-increase-value();
6
VerticalBox {
7
Text {
8
- text: "Counter: \{counter}";
+ text: "Counter: \{root.counter}";
9
}
10
Button {
11
text: "Increase value";
12
clicked => {
13
- request-increase-value();
+ root.request-increase-value();
14
15
16
0 commit comments