@scaleflex/widget-informer
v4.6.0
Published
A notification and error pop-up bar for Scaleflex.
Downloads
181
Keywords
Readme
@scaleflex/widget-informer
A pop-up alert for showing info, warnings or errors in Scaleflex Media Asset Widget when other plugins needs to show some message with any of the mentioned types.
Usage
NPM
npm install --save @scaleflex/widget-informerYARN
yarn add @scaleflex/widget-informerthen
import Informer from '@scaleflex/widget-informer'
...
...
...
scaleflexWidget.use(Informer, propertiesObject)CDN
The plugin from CDN is found inside Scaleflex global object Scaleflex.Informer
const Informer = window.ScaleflexWidget.Informer
...
...
...
scaleflexWidget.use(Informer, propertiesObject)If you are using
@scaleflex/widget-explorerplugin you don't need to manually import this plugin as it is being imported automatically there with its styles and the default idExplorer:InformerUnless the Explorer id is changed.
Plugin's styles
import '@scaleflex/widget-core/dist/style.css'
import '@scaleflex/widget-informer/dist/style.css'or if you prefer the minified version
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 for having the styles shown correctly.
