jquery带折叠菜单的拖放列表排序插件

所属分类: 网页特效-筛选&排序    2023-08-17 02:02:25

jquery带折叠菜单的拖放列表排序插件 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery带折叠菜单的拖放列表排序插件(共9个文件)

    • jquery-sortable-lists.min.js
    • jquery-sortable-lists-mobile.js
    • jquery-sortable-lists.js
    • jquery-sortable-lists-mobile.min.js
    • index.html

使用方法

    $(function()
    {
      var options = {
        placeholderCss: {'background-color': '#ff8'},
    hintCss: {'background-color':'#bbf'},
    onChange: function( cEl )
    {
      console.log( 'onChange' );
    },
    complete: function( cEl )
    {
      console.log( 'complete' );
    },
    isAllowed: function( cEl, hint, target )
    {
      // Be carefull if you test some ul/ol elements here.
      // Sometimes ul/ols are dynamically generated and so they have not some attributes as natural ul/ols.
      // Be careful also if the hint is not visible. It has only display none so it is at the previouse place where it was before(excluding first moves before showing).
      if( target.data('module') === 'c' && cEl.data('module') !== 'c' )
      {
        hint.css('background-color', '#ff9999');
        return false;
      }
      else
      {
        hint.css('background-color', '#99ff99');
        return true;
      }
    },
    opener: {
      active: true,
      as: 'html',  // if as is not set plugin uses background image
      close: '<i class="fa fa-minus c3"></i>',  // or 'fa-minus c3',  // or './imgs/Remove2.png',
      open: '<i class="fa fa-plus"></i>',  // or 'fa-plus',  // or'./imgs/Add2.png',
      openerCss: {
        'display': 'inline-block',
        //'width': '18px', 'height': '18px',
        'float': 'left',
        'margin-left': '-35px',
        'margin-right': '5px',
        //'background-position': 'center center', 'background-repeat': 'no-repeat',
        'font-size': '1.1em'
      }
    },
    ignoreClass: 'clickable'
      };
      $('#sTree2').sortableLists(options);

      console.log($('#sTree2').sortableListsToArray());
      console.log($('#sTree2').sortableListsToHierarchy());
      console.log($('#sTree2').sortableListsToString());
    });

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 筛选&排序

jquery网格布局图片拖到排序效果

一款鼠标拖拽移动自动排序插件,可任意插入到任何位置,非常的实用。
  筛选&排序
 5772  0

jquery复选框checkbox过滤器插件

一个简单的jquery过滤器插件,用于过滤一组带有复选框和HTML数据属性的DIV元素。
  筛选&排序
 5718  0

table表单数据处理插件DataTables

一款响应式数据处理插件,带分页、排序,可设置显示数据条数及即时搜索查询功能。
  筛选&排序
 8927  0

jquery支持模糊查询的table表格数据快速筛选插件

这是表过滤器的最低限度jQuery实现,它允许搜索输入在keyup上过滤表数据。
  筛选&排序
 9773  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论