farmbot-toastr
v1.0.3
Published
A notification system for the Farmbot webapp.
Maintainers
Readme
Farmbot Toastr: A notification system created for the Farmbot webapp.
Installation
npm install farmbot-toastrInitialization
// Place this at the application root (i.e. `routes.js`)
import { init } from "farmbot-toastr";
init();Example
import { success } from "farmbot-toastr";
success("Woot!");Available Methods
| Method | Bg Color | Default Title |
| ------------- |---------------| -----------------|
| success | green | "Success" |
| error | red | "Error" |
| warning | yellow | "Warning" |
| info | blue | "FYI" |
| fun | dark-blue | "Did you know?"|
