Foren

Need help on AUI DATA TABALE

thumbnail
Sudarshan Kumar, geändert vor 9 Jahren.

Need help on AUI DATA TABALE

New Member Beiträge: 4 Beitrittsdatum: 30.05.14 Neueste Beiträge
Hi All,

Can anyone help me . how to make AUI DATA TABLE' s column draggable. Here is sample code which I am using to create DATA TABLE.


<div id="myDataTable"></div>
AUI().use(
	'aui-datatable',
	function(A) {
		var columns = ['name', 'address', 'city', 'state'];

	    var data = [
	      {address: '1236 Some Street', city: 'San Francisco', name: 'John A. Smith', state: 'CA'},
	      {address: '3271 Another Ave', city: 'New York', name: 'Joan B. Jones', state: 'NY'},
	      {address: '9996 Random Road', city: 'Los Angeles', name: 'Bob C. Uncle', state: 'CA'},
	      {address: '1623 Some Street', city: 'San Francisco', name: 'John D. Smith', state: 'CA'},
	      {address: '9899 Random Road', city: 'Los Angeles', name: 'Bob F. Uncle', state: 'CA'}
	    ];

     new A.DataTable(
      {
        columnset: columns,
        recordset: data,
       }
    ).render('#myDataTable');
});


Reference : Click here to see

Thanks
Sudarshan