Hello all,
I’m trying to combine the mobiscroll listview with filtering ( I used the demo as a starting point) with swipe actions.
Here’s the initialization code:
this.listview = $('.md-schedule-list').mobiscroll().listview({
enhance: true,
swipe: false,
striped: true,
onInit: function (ev, inst) {
setTimeout(function () {
that.filter();
});
},
stages: [{
percent: -25,
color: 'red',
text: 'Delete',
confirm: true,
action: function (event, inst) {
console.log(event);
}
}, {
percent: 25,
color: 'green',
text: 'Update',
confirm: true,
action: function (event, inst) {
console.log(event);
}
}]
}).mobiscroll('getInst');
Thanks