slint/examples/7gui/crud.60

32 lines
892 B
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
import { LineEdit, Button, Slider, StandardListView, GridBox, HorizontalBox } from "sixtyfps_widgets.60";
Crud := Window {
GridBox {
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"; }
HorizontalBox {
alignment: start;
Button { text: "Create"; }
Button { text: "Update"; }
Button { text: "Delete"; }
}
}
}