I would love to utilize angular toastr, but I've read that you can only configure the position via configuration. So I can set it once and that's it? I can't display toaster messages in any other regions on the screen other than the one I specified in the initialization of the app?
Asked
Active
Viewed 127 times
1
-
Are you using angular-material? Would you share some code? – oKonyk Aug 10 '16 at 00:07
-
no. And no code is necessary to show for my situation. – james Aug 10 '16 at 01:02
-
You can pass in configuration details on a "per toast" basis that override the global defaults for that specific instance. e.g. `toastr.info(' Success!', 'With HTML', { allowHtml: true });` – Brendan Green Aug 10 '16 at 02:29
-
@BrendanGreen I'm specifically looking for how to change the positionClass. Do you know if it's possible to change the position class on a "per toast" basis? – james Aug 10 '16 at 02:31
-
Did you try passing the `positionClass` into the config for the toast? – Brendan Green Aug 10 '16 at 02:32
-
@BrendanGreen I've done it during the config. But you cannot add positionClass as an argument when creating a new toast – james Aug 10 '16 at 03:31
-
Time to show code. `toastr.info('Info!', 'With HTML', { positionClass: 'whatever' });` should work. How else would the sample / demo page allow you to select the position dynamically – Brendan Green Aug 10 '16 at 03:33
-
@BrendanGreen that does not work. I think the creator specifically said you can't do that. I'm looking for a work around. – james Aug 10 '16 at 13:51