mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
14 lines
387 B
Text
14 lines
387 B
Text
|
import { VLabeledComponent } from "LabeledComponent.slint";
|
||
|
import { Palette } from "Palette.slint";
|
||
|
|
||
|
export component VTextInput inherits VLabeledComponent {
|
||
|
in-out property text <=> textInputComponent.text;
|
||
|
in-out property wrap <=> textInputComponent.wrap;
|
||
|
callback accepted();
|
||
|
|
||
|
textInputComponent := TextInput {
|
||
|
color: Palette.foreground;
|
||
|
accepted => { root.accepted() }
|
||
|
}
|
||
|
}
|