Closed Abdvkh closed 3 years ago
Hi,
The addFooterBtn()
method return the element, so you can just do:
let btnToRemove = modal.addFooterBtn('My button', 'tingle-btn tingle-btn--primary', function() {
alert('click on button!');
});
Then
btnToRemove.remove()
Feature to remove button which is added to footer