1.0.3 • Published 4 years ago

booble-toast v1.0.3

Weekly downloads
23
License
-
Repository
github
Last release
4 years ago

Installing

$ npm install --save booble-toast

Github

https://github.com/ricksonsa/booble-toast

Usage

    import { ToastService, ToastOptions, ToastEnum } from 'booble-toast';


     constructor(private toastService: ToastService) {
    }

    showToast(message: string) {
        this.toastService.showToast(new ToastOptions(message, ToastEnum.SUCCESS, true, 3000));  
    }

ToastOptions receives 4 parameters: mesage, ToastEnum(css class), hasCloseButton (optional default false), time (optional default 5000)