2012-05-19 2 views
0

나는 YUI 3.5를 배우고 있으며 포맷터를 사용하여 VAT 및 Total 열을 계산했습니다. (아래 jsfiddle 참조).YUI 3.5 계산 된 열 및 정렬

그러나 정렬은 작동하지 않습니다. 데이터에 대한 시각적 표현을 작성하고 있기 때문에 추측 할 수 있지만 그 아래에는 기본 데이터가 없습니다. 정렬이 작동하도록 계산 된 열을 만드는 적절한 방법은 무엇입니까?

http://jsfiddle.net/zWk54/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