How to implement triggering event moved after sorting using UIkit?

How to implement triggering event moved after sorting using UIkit?

the Handbook says that you should use the initialization:
UIkit.sortable(element, options);

for example :

<ul id="elms" class="uk-grid-small uk-child-width-1-2 uk-child-width-1-4@s uk-text-center" uk-sortable="handle: .uk-card" uk-grid>
the <li>
 <div class="uk-card uk-card uk default-card-body">Item 1</div>
</li>
the <li>
 <div class="uk-card uk-card uk default-card-body">Item 2</div>
</li>
</ul>


then
UIkit.sortable('#elms', {
 moved: function(){
alert(1);
}
});


well, nothing is triggered, when alert is triggered F5 just one time, tell me what I'm doing wrong?
April 3rd 20 at 18:46
0 answer

Find more questions by tags UIkit