drag_sort Short code - simple usage

drag_sort

drag_sort - m-framework.com

Makes child elements sortable via drag-and-drop, uses Ajax for save an order (recommended for admin panel or protected parts of website)



  •    Draggable block 1
       Draggable block 2
       Draggable block 3
       Draggable block 4

  • <div data-m-action="drag_sort" data-m-model="some-encryped-model-name">
        <div class="block" data-id="1" draggable="false"><i class="move"></i> &nbsp;&nbsp; Draggable block 1</div>
        <div class="block" data-id="2" draggable="false"><i class="move"></i> &nbsp;&nbsp; Draggable block 2</div>
        <div class="block" data-id="3" draggable="false"><i class="move"></i> &nbsp;&nbsp; Draggable block 3</div>
        <div class="block" data-id="4" draggable="false"><i class="move"></i> &nbsp;&nbsp; Draggable block 4</div>
    </div>

Users comments


Sorry you cant to leave a comment. Try to authorize yourself via login and password or use a one of social networks below: