Renders
individual cells of an HTML table.
Renders
individual cells of an HTML table. The tag
is data bound to a data set specified in the dataSource
attribute. Other <netui...> tags in the body of <netui-data:cellRepeater>
can use the expression {container.item}
to access the current data item in the data set.
Attributes |
alternatingCellClass |
Required: No | Supports
runtime evaluation: No | Data bindable: No |
|
The HTML style class that is rendered on alternating table cells.
The starting cell is alternated for each row, which
results in a checkerboard colored table being displayed. For example, if the
alteranting cell class is "alternatingCellClass", every other table cell
tag is:
<td cell="alternatingCellClass"> |
cellClass |
Required: No | Supports
runtime evaluation: No | Data bindable: No |
|
The HTML style class that is rendered on each table cell.
For example, if the cell class is "cellClass",
each opening table cell tag is:
<td class="cellClass"> |
columns |
Required: No | Supports
runtime evaluation: Yes | Data bindable: Yes |
|
Integer. The number of columns that should be rendered in the HTML table.
If the columns attribute is specified but
the rows attribute is not, the rows attribute will be inferred
using the size of the data set. |
dataSource |
Required: Yes | Supports
runtime evaluation: No | Data bindable: |
|
|
rowClass |
Required: No | Supports
runtime evaluation: No | Data bindable: No |
|
The HTML style class that is rendered on each HTML table row.
For example, if the row class is "rowClass",
each opening table row tag is:
<tr class="rowClass"> |
rows |
Required: No | Supports
runtime evaluation: Yes | Data bindable: Yes |
|
Integer. The number of rows that should be rendered in the HTML table.
If the rows attribute is specified but
the columns attribute is not, the columns attribute will be
inferred using the size of the data set. |
tableClass |
Required: No | Supports
runtime evaluation: No | Data bindable: No |
|
The HTML style class that is rendered on the HTML table.
For example, if the row class is "tableClass",
each opening table tag is:
<table class="tableClass"> |
verticalRepeat |
Required: No | Supports
runtime evaluation: No | Data bindable: No |
|
Boolean. If true the data set is rendered vertically, otherwise it is rendered horizontally. If
the rows are rendered horizontally, the items in the data set are rendered
across each row from top to bottom. Otherwise, they are rendered down each
column from left to right. The default is to render the items horizontally. |
In the following sample, the <netui-data:cellRepeater> tag creates a table with a
certain number of columns, as given in {pageFlow.numColumns}
and as many
rows as necessary to display all the items in the data set.