| Page 1 of 1 | [ 1 post ] |
kaushik gandhi
|
i am new to yui . i have this code
Code: YUI().use('datatable', function(Y) { // Columns must match data object property names var data = [ { 'browser' : 'Blazer', 'visits' : '20', 'visits_precentage' : '0.7%' }, { 'browser' : 'Opera Mini', 'visits' : '30', 'visits_precentage' : '6.2%' }, { 'browser' : 'Safari', 'visits' : '25', 'visits_precentage' : '8.5%' }, { 'browser' : 'Microsoft IE for Mobile', 'visits' : '70', 'visits_precentage' : '26.8%' }, { 'browser' : 'Firefox Mobile', 'visits' : '40', 'visits_precentage' : '12.8%' }, { 'browser' : 'Google Android', 'visits' : '120', 'visits_precentage' : '45%' }, ]; table = new Y.DataTable({ columns : [ { key : "browser", label : "Browser", width : "600" }, { key : "visits", label : "Impression", width : "600" }, { key : "visits_precentage", label : "Impression (%)", width : "600" } ], data : data, sortable : true }); //dataTableAsCSV (table); table.sort({ visits_precentage : 'desc' }); table.render("#grid"); //alert(table); }); now i want a javascript csv creator to fetch the data from the table . |
| Page 1 of 1 | [ 1 post ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group