I am trying to implement Pillbox from Fuel UX. I've one issue while removing the item. Fuel UX has provided methods which we can use to get the details of the removed item. I want to get the ID of the removed item so that i can delete it from my database.
Below is the dummy code (Sorry, I am new with this Fuel UX) -
// binding pills
$('#filterpills').pillbox('addItems', 0, [{
text: 'facedbook.com',
value: '1'
}]);
// remove pills
$('#filterpills').on('removed.fu.pillbox', function (item) {
// do something
alert('removed -value'+ $(item).data('value'));
// want to get id of the deleted item here.
// while using item in alert its showing - {object}
});
Please help me get the deleted id or value (i.e 1 for facebook.com) so that I can delete this entry from the database as well.
Thanks in advance :)