mirai/external/slint-vynui/TextInput.slint

13 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() }
}
}