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

datatables.net-select-bs5 not working #73

Open
prashantsimejiya-siya opened this issue Aug 12, 2022 · 1 comment
Open

datatables.net-select-bs5 not working #73

prashantsimejiya-siya opened this issue Aug 12, 2022 · 1 comment

Comments

@prashantsimejiya-siya
Copy link

Hello,

I am using this package it's work grate. but one issue is that when click on table row it's not selected and backgroup color not changed.

I am installed all dependent package but still issue is there. so please guide me how solve this issue.

Thank you in advance

@noogen
Copy link
Contributor

noogen commented Aug 13, 2022

@prashantsimejiya-siya See point 2 here https://github.com/niiknow/vue-datatables-net#responsive The select-checkbox plugin does not work because the code was written for jQuery and not for vue. Therefore, we only import the css and implement the code into Vue (no need to import select checkbox javascript code itself.)

As a result, select checkbox feature is simplied/built-in. Set the select-checkbox property of the component value to any number greater than -1 https://github.com/niiknow/vue-datatables-net/blob/master/src/VdtnetTable.vue#L164 This property tell where the select checkbox column will be in the table.

You can see that it is working fine in the demo/example code here: https://github.com/niiknow/vue-datatables-net/blob/master/example/Example.vue#L43 demo: https://niiknow.github.io/vue-datatables-net/

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

2 participants