<?php require_once '../lib/Kendo/Autoload.php'; $sortable = new \Kendo\UI\Sortable('#sortable-horizontal'); // select the container for the Sortable $sortable->axis('x') ->container('#sortable-horizontal') ->cursor('move') ->placeholder('<div class="placeholder">Drop Here!</div>') ->hint(new \Kendo\JavaScriptFunction('hint')); echo $sortable->render(); ?> <div class="demo-section" style="margin-top: 50px;"> <h3 class="title">Rearrange the photos</h3> </div> <div class="demo-section" style="margin-bottom: 50px;"> <div id="sortable-horizontal"> <img src="../content/web/sortable/1.jpg" /><img src="../content/web/sortable/2.jpg" /><img src="../content/web/sortable/3.jpg" /><img src="../content/web/sortable/4.jpg" /><img src="../content/web/sortable/5.jpg" /> </div> </div> <script> function hint(element) { return element.clone().addClass("tooltip"); } </script> <style> #example { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .demo-section .title { margin: 0; } #sortable-horizontal { overflow: hidden; width: 878px; text-align: center; } #sortable-horizontal img { width: 155px; margin: 10px; vertical-align: middle; cursor: move; } .placeholder { display: inline-block; width: 153px; height: 115px; border: 1px dashed #ddd; background-color: #f3f5f7; margin: 10px; font-size: 1.3em; font-weight: bold; line-height: 125px; vertical-align: middle; color: #777; } .tooltip { opacity: .6; } </style>