<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          dragsortjQuery 框架排序小工具

          聯(lián)合創(chuàng)作 · 2023-09-22 11:08

          dragsort 是一個(gè) JavaScript 文件,允許用戶在 jQuery 框架上通過拖拽來來做列表排序。

          用法:

          $("ul").dragsort({ dragSelector: "li", dragEnd: function() { }, 
          dragBetween: false, placeHolderTemplate: "<li></li>" });
          $("ul").dragsort("destroy");

          dragSelector: The CSS selector  of the element inside the list item to act as the drag handle. The default is the list item itself e.g. LI.
          dragSelectorExclude: The css selector of the elements inside the dragSelector to not trigger dragsort. The default is "input, textarea".
          itemSelector: The css selector of the list items that are moveable. Will only match elements that are immediate children of list container. The default is tag name of first child e.g. LI.
          dragEnd: The callback function that will be called after the dragging has ended (only called if the list order has changed). The keyword "this" in function will refer to list item that was dragged.
          dragBetween: Set to "true" if you want to enable the ability to drag between selected lists or to allow dragging of the list item outside of the list for auto scroll. The default is false.
          placeHolderTemplate: The html of the place holder for the dragged item. The default is empty list item e.g."<li></li>".
          scrollContainer: The css selector of the element you want to scroll (i.e. div with overflow set to auto) when the list item is dragged outside the list. The default is window.
          scrollSpeed: A number that represents the speed that the page will scroll when dragging an item outside the scroll container, a higher value is faster and a lower value is slower. Set to 0 to disable scrolling. The default is 5.


          瀏覽 18
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  一级A级片电影国产国产国产国产国产 | 91社区成人影院 | 一级黄色特级片 | 来一个美国大鸡巴操逼 | 天天草天天草 |