squareroot
squareroot

Reputation: 1

Provide default sorting on a yui:datacolumn

I have defined a yui:datacolumn 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?

Upvotes: 0

Views: 261

Answers (1)

kelbaker
kelbaker

Reputation: 21

One way to underline the label of the column heading:

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

Upvotes: 2

Related Questions