slint/examples/7gui/crud.60
2020-12-02 09:21:17 +01:00

45 lines
1.3 KiB
Text

/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
import { LineEdit, Button, Slider, StandardListView } from "sixtyfps_widgets.60";
Crud := Window {
GridLayout {
spacing: 7px;
padding: spacing;
Text { text: "Filter prefix:"; }
LineEdit {}
StandardListView {
row: 1;
rowspan: 3;
colspan: 2;
model: [{ text: "Emil, Hans"}, {text: "Mustermann, Max"}, {text: "Tisch Roman"}];
}
Text { col: 2; row: 1; text: "Name: "; }
LineEdit { text: "John"; }
Text { col: 2; row: 2; text: "Surename: "; }
LineEdit { text: "Romba"; }
HorizontalLayout {
row: 4;
colspan: 4;
spacing: parent.spacing;
alignment: start;
Button { text: "Create"; }
Button { text: "Update"; }
Button { text: "Delete"; }
}
}
}