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 {
|
|
|
|
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 {
|
|
|
|
label: "Label"
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|