@scaleflex/widget-url
v4.8.5
Published
The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!
Keywords
Readme
@scaleflex/widget-url
The Url plugin for Scaleflex Media Asset Widget lets users import files from the Internet. Paste any URL and it’ll be added!
Usage
NPM
npm install --save @scaleflex/widget-urlYARN
yarn add @scaleflex/widget-urlthen
import Url from '@scaleflex/widget-url'
...
...
...
scaleflexWidget.use(Url, propertiesObject)CDN
The plugin from CDN is found inside Scaleflex global object Scaleflex.Url
const url = window.ScaleflexWidget.Url
...
...
...
scaleflexWidget.use(url, propertiesObject)Plugin's styles
import '@scaleflex/widget-core/dist/style.css'
import '@scaleflex/widget-url/dist/style.css'or if you prefer the minified version
import '@scaleflex/widget-core/dist/style.min.css'
import '@scaleflex/widget-url/dist/style.min.css'The plugin's css file should be imported after the Core's css file for having the styles shown correctly.
Properties
title
Type: string
Default: 'Link'
The title/label that would be shown & used for the plugin.
companionHeaders
Type: null | object
Default: null
If you need to pass additional headers for in companion requests then pass them in this property.
