ionic-toast
ionic-toast copied to clipboard
Duration with closed button?
Why do you require to provide duration
if close button is also shown?
If duration is not provided - it doesn't show the toast ... but if it's provided - it's not used anyways if close button is used ... doesn't make sense :)
Would make more sense to either use duration (if provided) with close button, or just have one option for duration - if it's null / zero - then show close button instead.
Would also be nice to have a callback function for close event.