久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      bootstrap拖動(dòng)布局元素怎么做

      bootstrap拖動(dòng)布局元素怎么做

      下面是bootstrap中拖動(dòng)table布局元素的實(shí)現(xiàn)方法:

      需要引入的文件

      bootstrap拖動(dòng)布局元素怎么做

      有的地方也叫jquery.tablednd.js,當(dāng)然肯定要基于jquery 和bootstrap table,把該引進(jìn)的css,js都引入,然后引入插件,本文用的是基于seajs的,按照seajs方法引入。

      然后正常初始化表格,需要添加的屬性

      bootstrap拖動(dòng)布局元素怎么做

      然后在bootstrap table初始化配置處(與method,url,columns同級(jí))添加以下方法

      bootstrap拖動(dòng)布局元素怎么做

      前兩個(gè)方法沒太大用,最后一個(gè)方法返回的newData是拖拽之后的表格順序,當(dāng)然只能當(dāng)前頁拖拽

      特別注意:如果不成功,額外在bootstrap配置里(columns同級(jí))添加

      useRowAttrFunc: true,

      實(shí)現(xiàn)效果:

      bootstrap拖動(dòng)布局元素怎么做

      bootstrap拖動(dòng)布局元素怎么做

      bootstrap拖動(dòng)布局元素怎么做

      引入文件地址:https://github.com/wangyeky3419/tablednd.js-bootstrap-table-reorder-rows.js

      bootstrap拖動(dòng)布局元素怎么做

      推薦:bootstrap入門教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)