2024-10-08 20:22:22 +00:00
|
|
|
import QtQuick 2.15
|
2022-05-26 15:46:02 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Controls.Validators 0.1
|
|
|
|
|
|
|
|
StatusInput {
|
|
|
|
id: root
|
|
|
|
|
2023-06-29 21:52:16 +00:00
|
|
|
label: qsTr("Description")
|
2022-05-26 15:46:02 +00:00
|
|
|
charLimit: 140
|
|
|
|
|
2022-07-22 10:28:04 +00:00
|
|
|
placeholderText: qsTr("What your community is about")
|
2022-05-26 15:46:02 +00:00
|
|
|
input.multiline: true
|
2023-06-29 21:52:16 +00:00
|
|
|
maximumHeight: 108
|
|
|
|
minimumHeight: 108
|
2022-05-26 15:46:02 +00:00
|
|
|
|
2022-08-03 00:07:27 +00:00
|
|
|
input.verticalAlignment: Qt.AlignTop
|
|
|
|
input.placeholder.verticalAlignment: Qt.AlignTop
|
|
|
|
|
2022-05-26 15:46:02 +00:00
|
|
|
validators: [
|
|
|
|
StatusMinLengthValidator {
|
|
|
|
minLength: 1
|
|
|
|
errorMessage: Utils.getErrorMessage(root.errors,
|
|
|
|
qsTr("community description"))
|
2023-01-27 00:12:48 +00:00
|
|
|
},
|
|
|
|
StatusRegularExpressionValidator {
|
|
|
|
regularExpression: Constants.regularExpressions.alphanumericalExpanded
|
|
|
|
errorMessage: Constants.errorMessages.alphanumericalExpandedRegExp
|
2022-05-26 15:46:02 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|