@filerobot/informer
A pop-up alert for showing info, warnings or errors when there is something needs to show some message with any of the mentioned types.
Usage
From NPM
The plugin is on NPM as @filerobot/informer
npm install --save @filerobot/informer
then
import Informer from '@filerobot/informer'
...
...
...
filerobot.use(Informer, optionsObject)
From CDN
The plugin from CDN is found inside Filerobot
global object Filerobot.Informer
const Informer = window.Filerobot.Informer
...
...
...
filerobot.use(Informer, optionsObject)
If you are using @filerobot/file-explorer
pluign you don't need to manually import this plugin as it is being imported automatically there with its styles and the default id FileExplorer:Informer
Unless the FileExplorer id is changed.
Plugin's styles
import '@filerobot/core/dist/style.css'
import '@filerobot/informer/dist/style.css'
or if you prefer the minified version
import '@filerobot/core/dist/style.min.css'
import '@filerobot/informer/dist/style.min.css'
The plugin's css file should be imported after the Core's css file for having the styles shown correctly.
Options
target: string
(required)
default: null
The selector or filerobot's plugin that would be used for mounting the informer into.
id: string
(optional)
default: 'Informer'
An unique identifier for the plugin to be indentified between the other plugins through it.