farmbot-toastr
Version:
A notification system for the Farmbot webapp.
25 lines (24 loc) • 841 B
TypeScript
/**
* Yellow message with "Warning" as the default title.
*/
export declare let warning: (message: string, title?: string, color?: string) => void;
/**
* Red message with "Error" as the default title.
*/
export declare let error: (message: string, title?: string, color?: string) => void;
/**
* Green message with "Success" as the default title.
*/
export declare let success: (message: string, title?: string, color?: string) => void;
/**
* Red message with "FYI" as the default title.
*/
export declare let info: (message: string, title?: string, color?: string) => void;
/**
* Blue message with "Did you know?" as the default title.
*/
export declare let fun: (message: string, title?: string, color?: string) => void;
/**
* Adds a hidden container div for holding toast messages.
*/
export declare let init: () => void;