Files
dashboard/ui/main.slint
2026-08-06 14:20:42 +02:00

19 lines
455 B
Plaintext

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}";
font-size: 24px;
}
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
}
}