jQuery Mobile List Item Deletion Plugin
Add-ons

Plugin Description: A simple and convenient jQuery plugin for deleting list items with swipe gestures on mobile devices.
Note: Please view the effect on a mobile device.
Last Updated: 2017/2/22 4:25:22 PM
Changelog:Added a method to hide the delete button by swiping right.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | $(".session-box").slide2del({ sItemClass: "session-box", sDelBtnClass: "del-btn", delHandler: function (target) { var text = target.find('.session-content').text(); target.remove(); alert(text+"Successfully deleted"); }, itemClickHandler: function (target) { console.log("You clicked the option:" + target.text()); $(this).slide2del_hideDel(); } }); |
评论