draeder | 2021-04-21 18:04:03 UTC | #1
Good afternoon
What options are available to format the content of a toast message? I found that with javascript template literals I can affect the formatting somewhat, but when I tried using HTML styling inside the template literal that didn't work.
Are there options available for styling the content inside a toast message? E.g. font style, background color, etc.?
Thanks, Dan
Jerome.Saint-Marc | 2021-04-21 18:23:17 UTC | #2
Hello,
The showToastPopup from the Client App SDK supports emoticons, emoji (unicode, shortcodes) and markdown (with markdwownMessage boolean in the options). Markdown is just about text formating - it does not include font style/colors, ....
You can also leverage the type (in the options) to have a different icon on the left side of the toast: success, error, info
As far as I know, you can't change the background color, the font style/color.
Regards,
draeder | 2021-04-21 18:46:44 UTC | #3
@Jerome.Saint-Marc
Thank you for the link, I was trying to find that but was having trouble locating it.
Much appreciated!
Thanks, Dan
system | 2021-05-22 18:46:45 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 10702