29 lines
728 B
Plaintext
29 lines
728 B
Plaintext
import { Button, LineEdit, VerticalBox } from "std-widgets.slint";
|
|
|
|
export component AppWindow inherits Window {
|
|
// in-out property <int> counter: 42;
|
|
// callback request-increase-value();
|
|
width: 200px;
|
|
height: 60px;
|
|
|
|
in-out property <string> search-text: "";
|
|
callback request-text-input(string);
|
|
VerticalBox {
|
|
|
|
LineEdit {
|
|
placeholder-text: "Search for Software";
|
|
accepted(text) => {
|
|
// debug("Accepted: ", text);
|
|
root.request-text-input(self.text);
|
|
}
|
|
}
|
|
|
|
// Button {
|
|
// text: "Increase value";
|
|
// clicked => {
|
|
// root.request-increase-value();
|
|
// }
|
|
// }
|
|
}
|
|
}
|