📄 z30-grid-0003.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--{{IS_NOTE Purpose: Test Grid with live data and renderer and sort Description: History: Create by Dennis }}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:h="http://www.w3.org/1999/xhtml"><h:h3> Test Grid with paging</h:h3><h:p>See if the sorted result printed in console is same as the data collection displayed in Browser.</h:p><vbox><toolbarbutton label="B30-1823959.zul" href="B30-1823959.zul"/><toolbarbutton label="B30-1824604.zul" href="B30-1824604.zul"/></vbox> <separator/> <zscript> ListModel strset = new org.zkoss.zkdemo.test2.grid.FakeListModel(); import org.zkoss.zkdemo.userguide.*; Comparator asc = new RowLabelComparator(true), dsc = new RowLabelComparator(false); </zscript> <vbox> <button label="Invalidate Model" onClick="strset.invalidate()"/> <button label="Invalidate Grid" onClick="g.invalidate()"/> <grid id="g" mold="paging" model="${strset}" width="400px" pageSize="13" activePage="10"> <columns sizable="true"> <column label="Type" sortAscending="${asc}" sortDescending="${dsc}" sortDirection="ascending"/> </columns> </grid> </vbox></zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -