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

Nested components #54

Open
beratmasat opened this issue Jul 29, 2024 · 0 comments
Open

Nested components #54

beratmasat opened this issue Jul 29, 2024 · 0 comments

Comments

@beratmasat
Copy link

beratmasat commented Jul 29, 2024

<tbody wire:sortable="editOrder">
            @foreach ($clientCategories as $category)

                // category-item component
                {{-- <tr class="flex bg-base-200" wire:sortable.item="{{ $category['id'] }}" wire:key="{{ $category['id'] }}">
                    <th wire:sortable.handle class="hover:cursor-grab">
                        <x-icon name="tni.drag-vertical" />
                    </th>
                    <td class="flex-1">
                        <h4>{{ $category['name'] }}</h4>
                    </td>
                    <td>
                        eylemler
                    </td>
                </tr> --}}

                <livewire:dashboard.components.category-item :$category />
            @endforeach
</tbody>

All components disappear in drag and drop operations?

Note: editOrder method is currently empty

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

1 participant