CSTextEntryArray QML Type
Display text entry for array data. More...
Import Statement: | import CSDataQuick.Components 1.0 |
Inherits: |
Properties
Detailed Description
Functionally it is the same as CSTextEntry, only that it allows to display and change an array data. Each array element is displayed in a text entry box, formatted using format and align.
The entries can be arranged either into a column or into a row. stacking
An sub-array can be selected using index and count.
label can be assigned for each array element. By default it is the element index.
Column { CSTextEntryArray { source: 'x' count: 5 } CSTextEntryArray { source: 'y' count: 5 stacking: Stacking.Row } }
Property Documentation
Sets the horizontal alignment of the text within the item width.
The valid values for horizontalAlignment are Text.AlignLeft, Text.AlignRight, Text.AlignHCenter and Text.AlignJustify. The font used depends on the item height using function UtilsJS::getBestFontSize.
This property holds the number of elements starting from index
This property indicates how the data value is formated to text display.
For all of the formats, the result depends on the number and the precision in limits.
See also TextFormat.
label : var |
This property holds the label texts to the elements
Set the layout for the text entries. Default is Stacking.Column.
- Stacking.Row: The entries are arranged in a row
- Stacking.Column: The entries are arranged in a column