|
Project Information
Featured
Downloads
Links
|
jquery.draggableListjQuery plugin. Point at an unordered list (or other element) specify a containment size and the list will become draggable. Drag the list up and down to scroll its contents. DemoCheck out a very basic demo: http://www.webpangea.co.uk/draggablelistdemo.htm Example Usage<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.draggable.js"></script>
<script type="text/javascript" src="jquery.draggableList.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.myList').draggableList({height:150, listPosition:0});
});
</script>
<ul class="myList">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
</ul>OptionsThe plugin has a bunch of options with default values as follows: cursor: 'n-resize', height: '150', width: '100', listPosition: '0', panelCssClass:'draggableList' cursorCSS cursor style on hovering over the list heightNumeric-value - pixels The height of the element which will hold the list (it's overflow will be set to hidden) widthNumeric-value - pixels The width of the element which will hold the list listPositionValue between 0 and 100 : Where abouts the list will be positioned relative to it's container. When 0, the list will appear scrolled right to the top, so the first element will be at the top of the container. When set to 100 the list will be scrolled right to the bottom panelCssClassName of the css class that is added to the container item. Used to style the container. DependanciesHas dependancies on:
|