Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Er-Kalpesh opened this issue Oct 12, 2022 · 0 comments
Open

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

Er-Kalpesh opened this issue Oct 12, 2022 · 0 comments

Comments

@Er-Kalpesh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant