📄 filtereddroplist.jsp
字号:
<%@ taglib uri="/tld/extremecomponents" prefix="ec" %><%@ taglib uri="/tld/c" prefix="c" %><html><head> <title>eXtremeComponents</title></head><body> <h3>Custom FilterCell And FilterRowsCallback</h3> <p> This example combines both a custom filterCell and filterRowsCallback. What you will notice is that by selecting the first name droplist filter it will limit the values that you see for the last name droplist filter. The last name column is implementing a custom filterCell. Another thing to notice is how the column values no longer do a fuzzy match, but rather will only match on exact values by doing a custom filterRowsCallback. </p> <p> Read the <a href="http://extremecomponents.org/wiki/index.php/Custom_FilterCell_Tutorial">FilterCell</a> and <a href="http://extremecomponents.org/wiki/index.php/Custom_FilterRowsCallback_Tutorial">FilterRowsCallback</a> tutorial for more information. </p> <br/> <ec:table items="presidents" action="${pageContext.request.contextPath}/filteredDroplist.run" title="Presidents" showTooltips="false" filterRowsCallback="exactMatch" > <ec:row> <ec:column property="firstName" filterCell="droplist"/> <ec:column property="lastName" filterCell="filteredDroplist"/> <ec:column property="nickName" filterable="false"/> <ec:column property="term" filterable="false"/> <ec:column property="born" cell="date" filterable="false"/> <ec:column property="died" cell="date" filterable="false"/> <ec:column property="career" filterable="false"/> </ec:row> </ec:table> <p> ** James and Andrew are two good first names to select to see this functionality in action. </p> <br/> <p> Below is the code that generates the above display. </p> <pre><ec:table items="presidents" action="${pageContext.request.contextPath}/filteredDroplist.run" title="Presidents" showTooltips="false" <b>filterRowsCallback="exactMatch"</b> > <ec:row> <ec:column property="firstName" filterCell="droplist"/> <ec:column property="lastName" <b>filterCell="filteredDroplist"</b>/> <ec:column property="nickName" filterable="false"/> <ec:column property="term" filterable="false"/> <ec:column property="born" cell="date" filterable="false"/> <ec:column property="died" cell="date" filterable="false"/> <ec:column property="career" filterable="false"/> </ec:row></ec:table></pre> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -