开发者

Provide default sorting on a yui:datacolumn

开发者 https://www.devze.com 2023-03-10 10:11 出处:网络
I have defined a yui:datacolum开发者_StackOverflow中文版n like below and wanted to sort this column in a specific way during page load.

I have defined a yui:datacolum开发者_StackOverflow中文版n like below and wanted to sort this column in a specific way during page load.

yui:datacolumn key="Action" label="Action" sortable="false" 

If I use the below code, I get a "The attribute prefix sortOptions does not correspond to any imported tag library" error message.

yui:datacolumn key="Action" label="Action" sortable="false" sortOptions:"{defaultDir:YAHOO.widget.DataTable.CLASS_DESC}"

I also wanted to underline the label of the column heading to indicate that this column is sortable. How do I do that?


One way to underline the label of the column heading:

.yui-skin-sam thead .yui-dt-sortable { 
    text-decoration: underline;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消