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')]); ?>
=$dragdrop?> Fruits | =$dragdrop?> Vegetables | =$dragdrop?> Berries |
---|---|---|
F: Apple | V: Cucumber | B: Strawberry |
F: Orange | V: Potato | B: Blueberry |
F: Banana link | V: Carrot | B: Watermelon |