Skip to content

humyfred/SlideToDo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SlideToDo

可做向左滑动删除

基于原生开发,可拓展为React、Vue的插件

效果

11.gif

效果链接:https://humyfred.github.io/SlideToDo/index.html

API

    <script>
    new SlideToDo({
        parent: '#J_serviceList', // 列表组件Id
        target: '.J_touch_service', // 列表单元类名
        action: function(rebind){
          // ...
          rebind() // 如果action函数重新渲染列表组件,rebind函数能重新绑定元素
        }
      })
   </script>

About

基于原生的向左滑动删除

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published