diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-09 15:12:56 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-09 15:12:56 +0800 |
commit | 3bf357b62eff1c1b411d9a89852ab24d9bff8414 (patch) | |
tree | 3e10248885a451585a16abee9b403794e5b0e849 | |
parent | 251baf98a01bdc04074a584a874f076f325600c6 (diff) |
Filter input on client side
-rw-r--r-- | main.qml | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -31,6 +31,9 @@ ApplicationWindow { } emailTextField { placeholderText: "Coba: Hardware, Ladders, Measuring Tools, Safety Equipment, Hand Tools, Painting Supplies, atau Tool Storage" + validator: RegularExpressionValidator { + regularExpression: /[a-zA-Z0-9]+/ + } onTextChanged: if (!emailTextField.text || !loginButton.enabled) loginButton.enabled = !loginButton.enabled } |