12345678910111213141516171819202122232425262728 |
- import Toast from "../dist/toasters.js";
- // const TestNotification = new Toast({
- // content: "persistent",
- // persistent: true,
- // interactable: false
- // });
- const TestNotification1 = new Toast("1", { timeout: 1000 });
- const TestNotification2 = new Toast({
- content: "2",
- persistent: true,
- interactable: true
- });
- // setTimeout(() => {
- // TestNotification2.show();
- // }, 2000);
- // setTimeout(() => {
- // TestNotification2.visible = false;
- // }, 4000);
- const TestNotification3 = new Toast("lorem ispum lorem hello my name is lorem ispum lorem ispum lorem ispum lorem ispum ", { interactable: false });
|