npm package: @scaleflex/widget-informer
Description: A notification and error pop-up bar for Scaleflex.
Latest version: 4.8.13

# `@scaleflex/widget-informer`

[![Plugins][plugins-image]](#plugins)
[![Website][filerobot-image]][sfx-url]
[![Version][filerobot-version]][version-url]
[![Scaleflex team][made-by-image]][sfx-url]
[![License][license-image]][license-url]
[![CodeSandbox][codeSandbox-image]][codeSandbox-url]


<div align='center'>
<img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
</div>

A pop-up alert for showing info, warnings or errors in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core) when other plugins needs to show some message with any of the mentioned types.

## Usage

### NPM

```bash
npm install --save @scaleflex/widget-informer
```

### YARN

```bash
yarn add @scaleflex/widget-informer
```

then

```js
import Informer from '@scaleflex/widget-informer'
...
...
...
scaleflexWidget.use(Informer, propertiesObject)
```

### CDN

The plugin from CDN is found inside `Scaleflex` global object `Scaleflex.Informer`

```js
const Informer = window.ScaleflexWidget.Informer
...
...
...
scaleflexWidget.use(Informer, propertiesObject)
```

> If you are using [`@scaleflex/widget-explorer`](../@scaleflex/widget-explorer/#filerobotexplorer) plugin 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

```js
import '@scaleflex/widget-core/dist/style.css'
import '@scaleflex/widget-informer/dist/style.css'
```

or if you prefer the minified version

```js
import '@scaleflex/widget-core/dist/style.min.css'
import '@scaleflex/widget-informer/dist/style.min.css'
```

> The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.

<!-- Variables -->

[npm-url]: https://www.npmjs.com/package/@scaleflex/widget-informer
[license-url]: https://opensource.org/licenses/MIT
[sfx-url]: https://www.scaleflex.com/
[version-url]: https://www.npmjs.com/package/@scaleflex/widget-informer
[codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js

[npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
[made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
[plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
[filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
[filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-informer?label=Version&style=for-the-badge&logo=npm
[codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox