Skip to content

How can I know if everything is loaded and ready to be used ?  #39

@joffreypersia

Description

@joffreypersia

Hi,

I just installed the package according to the instructions (from npm + added the lines in the app.js). I added the attributes to the differents elements like the doc :

<ul wire:sortable="updateTaskOrder" wire:sortable.options="{ animation: 100 }">
    @foreach ($tasks as $task)
        <li wire:sortable.item="{{ $task->id }}" wire:key="task-{{ $task->id }}">
            <h4>{{ $task->title }}</h4>
            <button wire:sortable.handle>drag</button>
        </li>
    @endforeach
</ul>

But the handle doesn't do anything when I am clicking and dragging.

Is there a way to make sure the elements are correctly loaded ?
I am trying to use the inside a tbody (to drag / sort tr)
Should I also import and assign to the window Sortable ?
or is it included in your instructions ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoMore info is needed in order to help

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions