fparkan/resource-viewer/ui/appwindow.slint

17 lines
425 B
Plaintext
Raw Normal View History

2023-10-27 22:58:12 +03:00
import { Button, VerticalBox } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property<int> counter: 42;
callback request-increase-value();
VerticalBox {
Text {
text: "Counter: \{root.counter}";
}
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
}
}