index.js 615 B

12345678910111213141516171819202122232425262728
  1. import Toast from "../dist/toasters.js";
  2. // const TestNotification = new Toast({
  3. // content: "persistent",
  4. // persistent: true,
  5. // interactable: false
  6. // });
  7. const TestNotification1 = new Toast("1", { timeout: 1000 });
  8. const TestNotification2 = new Toast({
  9. content: "2",
  10. persistent: true,
  11. interactable: true
  12. });
  13. // setTimeout(() => {
  14. // TestNotification2.show();
  15. // }, 2000);
  16. // setTimeout(() => {
  17. // TestNotification2.visible = false;
  18. // }, 4000);
  19. const TestNotification3 = new Toast("lorem ispum lorem hello my name is lorem ispum lorem ispum lorem ispum lorem ispum ", { interactable: false });