2021-07-23 09:44:38 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
import Sandbox 0.1
|
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 8
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
|
|
|
input.placeholderText: "Placeholder"
|
2021-07-23 09:44:38 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
2021-07-23 11:17:14 +00:00
|
|
|
label: "Label"
|
2021-07-23 10:36:45 +00:00
|
|
|
input.placeholderText: "Disabled"
|
|
|
|
input.enabled: false
|
2021-07-23 09:44:38 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
|
|
|
input.placeholderText: "Clearable"
|
|
|
|
input.clearable: true
|
2021-07-23 10:02:00 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
|
|
|
input.placeholderText: "Invalid"
|
|
|
|
input.valid: false
|
2021-07-23 10:07:51 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
2021-07-26 12:57:30 +00:00
|
|
|
label: "Label"
|
|
|
|
|
|
|
|
input.icon.name: "search"
|
|
|
|
input.placeholderText: "Input with icon"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusInput {
|
2021-07-23 10:36:45 +00:00
|
|
|
label: "Label"
|
|
|
|
input.placeholderText: "Placeholder"
|
2021-07-23 11:17:14 +00:00
|
|
|
input.clearable: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
charLimit: 30
|
|
|
|
input.placeholderText: "Placeholder"
|
|
|
|
input.clearable: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
label: "Label"
|
|
|
|
charLimit: 30
|
|
|
|
input.placeholderText: "Placeholder"
|
|
|
|
input.clearable: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
label: "Label"
|
|
|
|
charLimit: 30
|
|
|
|
errorMessage: "Error message"
|
|
|
|
|
|
|
|
input.clearable: true
|
|
|
|
input.valid: false
|
|
|
|
input.placeholderText: "Placeholder"
|
2021-07-23 09:44:38 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
|
|
|
input.multiline: true
|
|
|
|
input.placeholderText: "Multiline"
|
2021-07-23 09:44:38 +00:00
|
|
|
}
|
|
|
|
|
2021-07-23 10:36:45 +00:00
|
|
|
StatusInput {
|
|
|
|
input.multiline: true
|
|
|
|
input.placeholderText: "Multiline with static height"
|
|
|
|
input.implicitHeight: 100
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
input.multiline: true
|
|
|
|
input.placeholderText: "Multiline with max/min"
|
|
|
|
input.minimumHeight: 80
|
|
|
|
input.maximumHeight: 200
|
2021-07-23 09:44:38 +00:00
|
|
|
}
|
|
|
|
}
|