MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

Change to allow use of checkbox without 'CanPinRecords' #427

Closed levi730 closed 2 years ago

levi730 commented 2 years ago

This change allows you to use the checkbox column even if you're not using the CanPinRecords trait.

Without this in place, rendering the datatable throws a Property [$pinnedRecords] not found on component.

With it, you can use the checkbox for pinned records as normal, or add a button, etc. to one of the slots to do something with the selected records.

Thanks!