mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(toast): remove showCloseButton and closeButtonText (#18957)
* Remove close button * update tests * update tests * add build
This commit is contained in:

committed by
Brandy Carney

parent
f742dc5519
commit
d6c20a9dec
@ -59,7 +59,9 @@
|
||||
async function showToast() {
|
||||
const toast = Object.assign(document.createElement('ion-toast'), {
|
||||
message: 'Hello world!',
|
||||
showCloseButton: true
|
||||
buttons: [
|
||||
{ text: 'Close', role: 'close' }
|
||||
]
|
||||
});
|
||||
document.body.appendChild(toast);
|
||||
await toast.present();
|
||||
|
Reference in New Issue
Block a user