refactor(toast): remove showCloseButton and closeButtonText (#18957)

* Remove close button

* update tests

* update tests

* add build
This commit is contained in:
Liam DeBeasi
2019-08-20 10:03:18 -04:00
committed by Brandy Carney
parent f742dc5519
commit d6c20a9dec
10 changed files with 32 additions and 88 deletions

View File

@ -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();