niiknow / vue-datatables-net

Vue jQuery DataTables.net wrapper component
https://niiknow.github.io/vue-datatables-net/
MIT License
171 stars 58 forks source link

datatables.net-select-bs5 not working #73

Open prashantsimejiya-siya opened 2 years ago

prashantsimejiya-siya commented 2 years ago

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 commented 2 years ago

@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/