(→XML Attributes Description) |
(→XML Attributes Description) |
||
Line 33: | Line 33: | ||
| title="Attribute" | <code>gn:rowXmlDefinition</code> | | title="Attribute" | <code>gn:rowXmlDefinition</code> | ||
| title="Description" | customised XML row layout | | title="Description" | customised XML row layout | ||
+ | |||
+ | Can be | ||
+ | * hardcoded - the name of xml file | ||
+ | |- | ||
+ | | title="Attribute" | <code>gn:rowXmlDefinitionOdd</code>(M103.8.0.5) | ||
+ | | title="Description" | customised XML row layout for odd rows. If not defined, gn:custom_row_xml will be used instead. | ||
+ | |||
+ | Can be | ||
+ | * hardcoded - the name of xml file | ||
+ | |- | ||
+ | | title="Attribute" | <code>gn:gn:rowXmlDefinitionEven</code>(M103.8.0.5) | ||
+ | | title="Description" | customised XML row layout for even rows. If not defined, gn:custom_row_xml will be used instead | ||
Can be | Can be |
Revision as of 15:06, 5 June 2020
GnTableView
- Widget XML tag
<com.ginstr.widgets.GnTableView>
- Description
GnTableView
is used to show data in an expanded table appearance, it replacesGnListView
withgn:lstExpandToFitChildren="true"
XML Attributes Description
gn:data_filters{n}
|
Defines filter parameter to sort data
Once data is loaded into Filters are separated by |
gn:sortColumn
|
Defines column by which data will be sorted
For example if dbRequest has columns: name,surname,timestamp, and name is set as a value for this attribute then all rows will be sorted by name and by defined sort order. |
gn:sortOrder
|
represents sorting order
Can be
|
gn:rowXmlDefinition
|
customised XML row layout
Can be
|
gn:rowXmlDefinitionOdd (M103.8.0.5)
|
customised XML row layout for odd rows. If not defined, gn:custom_row_xml will be used instead.
Can be
|
gn:gn:rowXmlDefinitionEven (M103.8.0.5)
|
customised XML row layout for even rows. If not defined, gn:custom_row_xml will be used instead
Can be
|
Events
Data types
Input |
---|
rows
|
Output |
---|
rows
|
Example
<com.ginstr.widgets.GnTableView android:id="@+id/lstSite" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center_horizontal" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:background="#555555" gn:rowXmlDefinition="attendeeList_row.xml" gn:data_columns_sort="surname" gn:data_filters="[#today]|[=]|[timestamp]" />
Filtering
- Same as
GnListView
Filtering