MedicOneSystems / MedicOneSystems/livewire-datatables
Accessing Array from Complex Example
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
how can I read and use the array from the example "Complex".
For me not even the display works as shown in the example. I get the following error message.
View [components.selected] not found. (View: /var/www/html/resources/views/livewire/datatables/datatable.blade.php)
If I remove the part from the example everything works fine again (except the display of course).
public $afterTableSlot = 'components.selected';
But the display is not the main issue. I want to process the IDs of the selected rows. How can I access them.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with resources/views/livewire/datatables/datatable.blade.php and the Complex example, then reproduce the missing components.selected view error. Determine how the example is intended to display the selected rows and expose their IDs; done means the example renders without that error and the selected-row IDs can be accessed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100