Knowledge: How to use the Sysero Toast API
Back
Knowledge
Title*How to use the Sysero Toast API
ManualTips and Tricks
Created05/03/2025
DetailSysero expose their own Toast message API allowing users to take advantage of the UI feedback.
JavaScript code example:
Toast.createToast(<type: integer>, <title: string>, <content: string>);
Parameter 1 "type":
0 = success, 1 = error, 2 = warning, 3 = information
Parameter 2 "title":
Any string. This is added to the icon tooltip
Parameter 3 "content"
Any string. This is the message content
Further examples:
Toast.createToast(0, 'Success', 'Action completed');
Toast.createToast(1, 'Error', 'Action failed');
Toast.createToast(2, 'Warning', 'Action not found');
Toast.createToast(3, 'Information', 'Action information is as follows: a, b, c');
Additional Manual Locations