简体   繁体   中英

How to expand toastr thing in Angular 2?

I have a ToastrService imported from 'ngx-toastr' in my Angular 2 app. The problem is that the text which I show there does not fit in, and it gets cut.

Can I expand it somewhere?

Eg, I can set up some params in toastrConfig:

const toastrConfig: Partial<IndividualConfig> = {
                            timeOut: 20000,
                            extendedTimeOut: 20000
                          }; 
this.toastr.warning(message, null, toastrConfig);

But I didn't find any settings in IndividualConfig regarding how wide/narrow should the pop up be.

Actually, toastr expands as needed. The problem was that there was a '<' thing in a message which toastr treated as a beginning of html tag. Damn.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM