FormSpinBoxDelegate QML Type
A Form delegate that corresponds to a spinbox. More...
Import Statement: | import org.kde.kirigamiaddons.formcard |
Inherits: |
Properties
- displayText : string
- from : int
- label : string
- status : var
- statusMessage : string
- stepSize : int
- textFromValue : function
- to : int
- validator : Validator
- value : int
- valueFromText : function
Methods
Detailed Description
This component is used to select a number. By default, the spinbox will be initialized with a minimum of 0 and a maximum of 99.
Example code:
FormCard.FormCardHeader { title: "Information" } FormCard.FormCard { FormCard.FormSpinBoxDelegate { label: "Amount" } }
Property Documentation
displayText : string |
This property holds the displayText of the internal spinbox.
from : int |
This property holds the from of the internal spinbox.
label : string |
A label that appears above the spinbox.
status : var |
This property holds the current type of status displayed in the text field.
Depending on the status of the text field, the statusMessage property will look different.
Accepted values:
Constant | Value |
---|---|
Kirigami.MessageType.Information | |
Kirigami.MessageType.Positive | |
Kirigami.MessageType.Warning | |
Kirigami.MessageType.Error |
See also Kirigami.MessageType.
statusMessage : string |
This property holds the current status message of the text field.
stepSize : int |
This property holds the stepSize of the internal spinbox.
textFromValue : function |
This property holds the textFromValue of the internal spinbox.
to : int |
This property holds the to of the internal spinbox.
validator : Validator |
This property holds the validator of the internal spinbox.
value : int |
This property holds the value of the internal spinbox.
valueFromText : function |
This property holds the valueFromText of the internal spinbox.