Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 889 Bytes

UPGRADING.md

File metadata and controls

31 lines (22 loc) · 889 Bytes

Upgrading

From 0.5.4 to 0.6.0

  • onClose prop has been renamed to onDismiss
  • close() method has been renamed to dismiss()
-toastInstance.close();
+toastInstance.dismiss();
  • CSS class names has been renamed to follow BEM, see the diff #37

From v0.1.0 to v0.2.0

  • onClose prop has been renamed to onClick
  • onClick prop, as name suggests, get triggered when toast gets dismissed by user
  • onClose prop will only gets triggered when
    • toast gets dismissed by user interaction OR
    • toast gets auto dismissed after given timeout

From v0.0.3 to v0.1.0

  • Distribution CSS file name has been changed, in order to restore old behaviour, update your code as
- import 'vue-toast-notification/dist/index.css';
+ import 'vue-toast-notification/dist/theme-default.css';