MedicOneSystems / MedicOneSystems/livewire-datatables

Accessing Array from Complex Example

Open
#143 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.