![]() |
YUI 3 expert needed
Hi, I tried to set up a sorted DataTable using YUI 3, on YUI 2 there was a way using formatter:YAHOO.widget.DataTable.formatNumber to get numbers sorted right.
But on YUI 3 this doesn?t work or I don?t know how to implement it. For example, this pre-sorted data: Code: Code:
YUI().use("datatable-sort", function(Y) { 8 80 94 100 124 I?m not familiar with java code, so please keep it simple. Any help would be great, thank you. |
Why not use jquery?
http://www.jquery4u.com/plugins/30-a...jquery-tables/ |
Quote:
You just need to take the quotes out from around the numbers (in the presortedData array initialization), so they'll be numbers instead of strings. (BTW I'm not a YUI 3 expert, I was just looking at an example when I happened to notice that their numbers weren't inside quotes.) |
Quote:
Quote:
|
All times are GMT. The time now is 07:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|