20 lines
No EOL
458 B
Text
20 lines
No EOL
458 B
Text
import { LineEdit } from "std-widgets.slint";
|
|
|
|
// Basic Input Component
|
|
export component Input {
|
|
in-out property <string> text;
|
|
in property <string> placeholder;
|
|
in property <bool> enabled: true;
|
|
|
|
callback edited(string);
|
|
|
|
LineEdit {
|
|
text: root.text;
|
|
placeholder-text: root.placeholder;
|
|
enabled: root.enabled;
|
|
edited(t) => {
|
|
root.text = t;
|
|
root.edited(t);
|
|
}
|
|
}
|
|
} |