generated from OBJNULL/Dockerized-Rust
Calculation implements the CalendarGrid widget
This commit is contained in:
parent
66c13bc08a
commit
c3fd6dea17
1 changed files with 11 additions and 3 deletions
|
@ -1,11 +1,14 @@
|
||||||
import { VerticalBox, Button, Palette } from "std-widgets.slint";
|
import { VerticalBox, Button, Palette } from "std-widgets.slint";
|
||||||
|
import { CalendarGrid } from "calendar.slint";
|
||||||
|
|
||||||
export component Calculation inherits PopupWindow {
|
export component Calculation inherits PopupWindow {
|
||||||
width: 400px;
|
width: 500px;
|
||||||
height: 200px;
|
height: 350px;
|
||||||
close-policy: PopupClosePolicy.no-auto-close;
|
close-policy: PopupClosePolicy.no-auto-close;
|
||||||
|
|
||||||
in property <string> message: "EXAMPLE MESSAGE";
|
in property <string> message;
|
||||||
|
in property <int> start;
|
||||||
|
in property <int> end;
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -16,6 +19,11 @@ export component Calculation inherits PopupWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
VerticalBox {
|
VerticalBox {
|
||||||
|
CalendarGrid {
|
||||||
|
start: start;
|
||||||
|
end: end;
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: message;
|
text: message;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|
Loading…
Reference in a new issue