📄 compact.jsp
字号:
<%@ taglib uri="/tld/extremecomponents" prefix="ec" %><%@ taglib uri="/tld/c" prefix="c" %><html><head> <title>eXtremeComponents</title></head><body> <h3>Compact View</h3> <p> An example of a custom view using the new view code. </p> <ec:table var="pres" items="presidents" action="${pageContext.request.contextPath}/compact.run" imagePath="${pageContext.request.contextPath}/images/table/compact/*.gif" view="compact" title="Compact Toolbar View" showTooltips="false" > <ec:exportPdf fileName="output.pdf" tooltip="Export PDF" headerColor="black" headerBackgroundColor="#b6c2da" headerTitle="Presidents" text="PDF" /> <ec:exportXls fileName="output.xls" tooltip="Export Excel" text="XLS" /> <ec:row highlightRow="true"> <ec:column property="fullName" title="Name"> <a href="http://www.whitehouse.gov/history/presidents/">${pres.fullName}</a> </ec:column> <ec:column property="nickName"/> <ec:column property="term"/> <ec:column property="born" cell="date"/> <ec:column property="died" cell="date"/> <ec:column property="career"/> </ec:row> </ec:table> <br/> <p> Below is the code that generates the above display. </p> <pre> <ec:table var="pres" items="presidents" action="${pageContext.request.contextPath}/compact.run" <b>imagePath="${pageContext.request.contextPath}/images/table/compact/*.gif"</b> <b>view="compact"</b> title="Compact Toolbar View" showTooltips="false" > <ec:exportPdf fileName="output.pdf" tooltip="Export PDF" headerColor="black" headerBackgroundColor="#b6c2da" headerTitle="Presidents" text="PDF" /> <ec:exportXls fileName="output.xls" tooltip="Export Excel" text="XLS" /> <ec:row> <ec:column property="fullName" title="Name"> <a href="http://www.whitehouse.gov/history/presidents/">${pres.fullName}</a> </ec:column> <ec:column property="nickName"/> <ec:column property="term"/> <ec:column property="born" cell="date"/> <ec:column property="died" cell="date"/> <ec:column property="career"/> </ec:row> </ec:table></pre> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -