...
name | type | cardinality | default | description |
---|---|---|---|---|
label | String | 0..1 |
| Label to display in tab |
location | String | 1..1 |
| Which region to add the view to |
toolbar | grid actions | 0..n |
| A collection of tools to add to the panel |
format | format definitions | 0..1 |
| A collection of formatting options |
emptyMsg | string | 0..1 | "No data to display" | Text to display for no results |
displayMsg | string | 0..1 | "Displaying {0} - {1} of {2}" | Paging toolbar text showing which rows are being displayed and how many rows are available in total. If set then this text will be displayed at the end of the grid status bar. Requires at least version 2.16.x of com.cohga.client.weave.main |
beforePageText | string | 0..1 | "Page" | Label before page number |
afterPageText | string | 0..1 | "of {0}" | Text after page number |
firstText | string | 0..1 | "First Page" | Tooltip for first page button |
prevText | string | 0..1 | "Previous Page" | Tooltip for previous page button |
nextText | string | 0..1 | "Next Page" | Tooptip for next page button |
lastText | string | 0..1 | "Last Page" | Tooltip for last page button |
refreshText | string | 0..1 | "Refresh" | Tooltip for refresh button |
itemsText | string | 0..1 | "Items per page" | Text for items per page |
pageSize | integer | 0..1 | 20 | The number of results to display per page |
showPageSize | boolean | 0..1 | true | Should the page size selector be shown. Requires at least version 2.16.x of com.cohga.client.weave.main |
Example
Basic grid view
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<view id='com.cohga.html.client.main.gridView'> <label>Identify</label> <location>south</location> </view> |
...
name | value | format |
d | Day of Month | Numeric, 2 digits, left padded |
D | Day of Week | Text, long |
j | Day of Month | Numeric |
l | Day of Week | Text, short |
N | Day of Week | Numeric, 1=Monday, 7=Sunday |
S | Day of Month Suffix | Text, 'st', 'nd', 'rd', 'th' |
w | Day of Week | Numeric, 0=Sunday, 6=Saturday |
z | Day of Year | Numeric |
W | Week of Year | Numeric, 2 digits, left padded |
F | Month | Text, long |
m | Month | Numeric, 2 digits, left padded, January=01 |
M | Month | Text, short |
n | Month | Numeric, January=1 |
t | Days in Month | Numeric |
Y | Year | Numeric, 4 digits |
y | Year | Numeric, 2 digits |
a | am/pm | Text |
A | AM/PM | Text |
g | Hour | 12 Hour, Numeric |
G | Hour | 24 Hour, Numeric |
h | Hour | 12 Hour, 2 digits, left padded |
H | Hour | 24 Hour, 2 digits, left padded |
i | Minute | Numeric, 2 digits, left padded |
s | Second | Numeric, 2 digits, left padded |
u | Milli-Second | Numeric, 3 digits, left padded |
T | Timezone | String |
Displaying record count
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<client:config id="example">
<!-- there should be other config items here -->
<view id="com.cohga.html.client.main.gridView">
<label>Data</label>
<location>center.south</location>
<displayMsg>Displaying {0} - {1} of {2}</displayMsg>
</view>
<!-- there should be other config items here -->
<client:config>
|