0

我正在学习 YUI 3.5,并使用格式化程序计算了列 VAT 和 Total。(见下面的jsfiddle)。

但是对它们进行排序不起作用。我猜是因为我正在为数据创建可视化表示,但它下面没有基础数据。创建计算列以便排序工作的正确方法是什么?

http://jsfiddle.net/zWk54/1/

4

1 回答 1

0

我在 IRC freenode #yui 频道上收到了回复

<Tew> stivlo - http://jsfiddle.net/zWk54/2/  is how I'd do it.
<Tew> (using getter in recordType; just in case someone wants to comment on 
      that but is not tempted to click)
<Tew> stivlo - the examples are linked on top right-hand side,
      http://yuilibrary.com/yui/docs/datatable/datatable-recordtype.html 
     (Sortable generated columns).  In case you have some comment on 
     documentation, we(?)'d appreciate it (it's "that week", it seems).

链接: http: //jsfiddle.net/zWk54/2/http://yuilibrary.com/yui/docs/datatable/datatable-recordtype.html

于 2012-05-19T16:23:41.650 回答