-1

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.

Sofia Bo
  • 679
  • 1
  • 10
  • 20
  • I don't think it would be a very good UX to show the user a very long message in a toast. Considering that the message doesn't fit in the toast, it's probably very long, which doesn't suit for a toast to show as they are meant to show just some notifications. – SiddAjmera Dec 13 '19 at 13:56

1 Answers1

0

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.

Sofia Bo
  • 679
  • 1
  • 10
  • 20