I'm programming a small custom App that depending on what is happening should display some popup notifications to the user. I am using the ZAF client invoke and doing the following:
client.invoke('notify', 'somewarning, 'error', 30000);This by itself does work. I did however have issues finding any documentation on how to handle this through https://developer.zendesk.com/api-reference/apps/apps-core-api/client_api/#clientinvokename--args and the pages linked to from there. I only found this code snippet in an old app someone else had already done in our company.
The following things I couldn't quite figure out:
- for the 3rd parameter, through some trial and error I found that ‘error’, ‘notification’ and ‘warning’ are options that change the color of the popups title. Are there any additional options that have other behaviours?
- For the text passed in the 2nd parameter, I'd like to do some formatting to make it look different. I have found that at least some simple HTML markup works, for example <b> and <i> tags and newline with <br>, but when I want to do other formatting it just never works.
Is there a way to change font sizes and font colors? At minimum I would like to make the whole text red so a popup becomes more noticeable for the end user.
If I've just missed the relevant documentation for this I'd be happy to just be pointed in the right direction :)