yii2-widget-datatables icon indicating copy to clipboard operation
yii2-widget-datatables copied to clipboard

How to define column type, I need column to be sorted as number

Open Er-Kalpesh opened this issue 2 years ago • 0 comments

So how to define column type here which is available in normal datatable?

Exp:

$('#example').dataTable({
  "columnDefs": [
    { "type": "num" }
  ]
});

In the same way I need the column to be sorted as a number, so how to define that with yii2?

Er-Kalpesh avatar Oct 12 '22 18:10 Er-Kalpesh