mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 18:16:43 +00:00
GODT-1316: Set default TextArea and TextField behavior
This commit is contained in:
@ -63,7 +63,7 @@ RowLayout {
|
||||
placeholderText: "Placeholder"
|
||||
label: "Label"
|
||||
hint: "Hint"
|
||||
assistiveText: "Error message"
|
||||
errorString: "Error message"
|
||||
}
|
||||
|
||||
|
||||
@ -119,7 +119,7 @@ RowLayout {
|
||||
placeholderText: "Password"
|
||||
label: "Label"
|
||||
hint: "Hint"
|
||||
assistiveText: "Error message"
|
||||
errorString: "Error message"
|
||||
}
|
||||
|
||||
TextField {
|
||||
@ -146,10 +146,18 @@ RowLayout {
|
||||
colorScheme: root.colorScheme
|
||||
Layout.fillWidth: true
|
||||
|
||||
placeholderText: "Placeholder"
|
||||
label: "Label"
|
||||
hint: "Hint"
|
||||
assistiveText: "Assistive text"
|
||||
placeholderText: "Type 42 here"
|
||||
label: "42 Validator"
|
||||
hint: "Accepts only \"42\""
|
||||
assistiveText: "Type sometihng here, preferably 42"
|
||||
|
||||
validator: function(str) {
|
||||
if (str === "42") {
|
||||
return
|
||||
}
|
||||
|
||||
return "Not 42"
|
||||
}
|
||||
}
|
||||
|
||||
TextField {
|
||||
|
||||
Reference in New Issue
Block a user