@filerobot/informer

A notification and error pop-up bar for Filerobot.

Usage no npm install needed!

<script type="module">
  import filerobotInformer from 'https://cdn.skypack.dev/@filerobot/informer';
</script>

README

@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/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 Explorer:Informer Unless the Explorer 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

id: string (optional)

default: 'Informer'

An unique identifier for the plugin to be indentified between the other plugins through it.