6import QGroundControl.Controls
10 text: fact ? fact.valueString : ""
11 unitsLabel: fact ? fact.units : ""
14 numericValuesOnly: fact && !fact.typeIsString
15 maximumLength: fact && fact.maxStringLength > 0 ? fact.maxStringLength : 32767 // 32767 is the TextInput default (no limit)
19 property Fact fact: null
21 onEditingFinished: _onEditingFinished()
23 function _onEditingFinished() {
24 var errorString = fact.validate(text, false /* convertOnly */)
25 if (errorString === "") {
26 clearValidationError()
30 showValidationError(errorString, fact.valueString)
34 onHelpClicked: helpDialogFactory.open()
36 QGCPopupDialogFactory {
39 dialogComponent: helpDialogComponent
43 id: helpDialogComponent
45 ParameterEditorDialog {
46 title: qsTr("Value Details")