set_context(context_system::instance()); $PAGE->set_url('/testsort2.php'); $PAGE->set_pagelayout('admin'); echo $OUTPUT->header(); echo $OUTPUT->heading('Sortable list examples'); $dragdrop = $OUTPUT->render_from_template('core/drag_handle', ['movetitle' => get_string('move')]); ?>

Example 9. Resorting columns

requires->js_amd_inline(<< *').attr('data-colorder', null); }) .on(SortableList.EVENTS.DROP, function(evt, info) { // Drag and drop finished, do custom stuff. if (info.positionChanged) { console.log('Example 9 event ' + evt.type); console.log(info); } }); }) EOT2 ); ?>
Fruits Vegetables Berries
F: AppleV: CucumberB: Strawberry
F: OrangeV: PotatoB: Blueberry
F: Banana linkV: CarrotB: Watermelon
footer();