RowTag用來定義表中的行。
一個簡單RowTag示例如下:
<ec:table
items="presidents"
var="pres"
action="${pageContext.request.contextPath}/presidents.run"
>
<ec:row>
<ec:column property="name"/>
<ec:column property="term"/>
</ec:row>
</ec:table>
使用highlightRow屬性可以設置行的高亮顯示,它的值為true或false,默認值為false。
<ec:table
items="presidents"
var="pres"
action="${pageContext.request.contextPath}/presidents.run"
>
<ec:row highlightRow="true">
<ec:column property="name"/>
<ec:column property="term"/>
</ec:row>
</ec:table>
設置highlightRow屬性后,它將插入設置行css類的javascript腳本,默認的css
類為highlight。你可以使用highlightClass來使用定制的css類。
RowTag關聯了很多樣式屬性:
<ec:row
style=""
styleClass=""
highlightClass=""
/>
所有這些都是可選的。highlightClass設置行高亮顯示時的css類;
style屬性定義行內聯的樣式;styleClass允許你定義一個行顯示的css類。
為了便于你對于行數據進行動態交互處理,提供了onclick、onmouseover和 onmouseout屬性。
<ec:row
onclick=""
onmouseover=""
onmouseout=""
/>
大多數標簽包含一系列的固定屬性,這樣那些已經實現的功能能夠被使用。然而,eXtremeTable具有一種更具彈性的架構,
你可以添加自己的標簽屬性實現更多的定制工作。此外,eXtremeTable提供了非常清晰的鉤子(hooks)允許你得到那些定制的
標簽屬性來做一些你需要的工作。
通過addExtendedAttributes()方法將擴展屬性包含到eXtremeTable里:
public void addExtendedAttributes(Row row);