Knowledge: How to use the Sysero Toast API
Back
    Title*How to use the Sysero Toast API
    ManualTips and Tricks
    Created05/03/2025
    Detail

    Sysero 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');

    Privacy Policy
    Cookies help us to improve your user experience. By using this site you consent to cookies being stored on your device. Read more...
    View or hide all system messages