hello everybody, may i have a question please?
How can i pass some value in Action Sheet when i want to do some think like delete, edit ?
when i click the row, popup a action sheet, pass a value in to the on click events(like id in database). just like below:
<a class="ac3" data-id="item-1">...</a>
<a class="ac3" data-id="item-2">...</a>
<a class="ac3" data-id="item-3">...</a>
var clickedId;
var actions = app.actions.create({
buttons: [
[
{
text:' Edit',
onClick: function (actions, e) {
console.log(clickedId);
}
}
]
]
});
$('.ac3').on('click', function () {
clickedId = $(this).attr('data-id');
actions.open();
});
1 Like
thanks for reply. it’s really simple and basic:rofl:
