Answer the question
In order to leave comments, you need to log in
How to fire the moved event after sorting using UIkit?
How to fire the moved event after sorting using UIkit?
in the manual it is written that it is necessary to use initialization:
UIkit.sortable(element, options);
for example there is:
<ul id="elms" class="uk-grid-small uk-child-width-1-2 [email protected] uk-text-center" uk-sortable="handle: .uk-card" uk-grid>
<li>
<div class="uk-card uk-card-default uk-card-body">Item 1</div>
</li>
<li>
<div class="uk-card uk-card-default uk-card-body">Item 2</div>
</li>
</ul>
UIkit.sortable('#elms', {
moved: function(){
alert(1);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question