How to use the angular2-toaster/angular2-toaster.ToasterConfig function in angular2-toaster

To help you get started, we’ve selected a few angular2-toaster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TwanoO67 / ngx-admin-lte / dist / layouts / auth / auth.js View on Github external
this.header_components = [];
        this.boxed_style = true;
        var param = route.snapshot.data[0];
        this.skin = this.paramExistOrDefault(param, 'skin', 'skin-blue');
        this.display_control = this.paramExistOrDefault(param, 'display_control');
        this.display_user = this.paramExistOrDefault(param, 'display_user');
        this.display_tasks = this.paramExistOrDefault(param, 'display_tasks');
        this.display_messages = this.paramExistOrDefault(param, 'display_messages');
        this.display_notifications = this.paramExistOrDefault(param, 'display_notifications');
        this.display_menu_user = this.paramExistOrDefault(param, 'display_menu_user');
        this.display_menu_search = this.paramExistOrDefault(param, 'display_menu_search');
        this.menu_title = this.paramExistOrDefault(param, 'menu_title', '');
        this.display_logout = this.paramExistOrDefault(param, 'display_logout', false);
        this.header_components = this.paramExistOrDefault(param, 'header_components', []);
        this.boxed_style = this.paramExistOrDefault(param, 'boxed_style', true);
        this.toastrConfig = new angular2_toaster_1.ToasterConfig({
            newestOnTop: true,
            showCloseButton: true,
            tapToDismiss: false
        });
        // this.translate = translate.getTranslate();
        // this.logger = new LoggerService( this.translate );
    }
    LayoutAuthComponent.prototype.paramExistOrDefault = function (param, index, default_value) {
github TwanoO67 / ngx-admin-lte / layouts / auth / auth.ts View on Github external
constructor(
      private userServ: UserService,
      private toastr: ToasterService,
      private translate: AdminLTETranslateService
    ) {
        this.toastrConfig = new ToasterConfig( {
            newestOnTop: true,
            showCloseButton: true,
            tapToDismiss: false
        });
        // this.translate = translate.getTranslate();
        // this.logger = new LoggerService( this.translate );
    }
github TwanoO67 / xiaomi-smart-home-gui / gui / src / app / app.component.ts View on Github external
constructor(private _user_serv: UserService, private _msg_serv: MessagesService, private _toastr: ToasterService) {
    this.toastrConfig = new ToasterConfig({
      showCloseButton: true,
      newestOnTop: true,
      tapToDismiss: false
    });
  }