@filerobot/pixaforge
v3.74.1
Published
Import free images & icons from Pixaforge that has free gallery for both.
Downloads
5,456
Keywords
Readme
@filerobot/pixaforge
Import free images & icons from Pixaforge in Filerobot Media Asset Widget that has free gallery for both.
Usage
NPM
npm install --save @filerobot/pixaforge
YARN
yarn add @filerobot/pixaforge
then
import Pixaforge from '@filerobot/pixaforge'
...
...
...
filerobot.use(Pixaforge, propertiesObject)
CDN
The plugin from CDN is found inside Filerobot
global object Filerobot.Pixaforge
const Pixaforge = window.Filerobot.Pixaforge
...
...
...
filerobot.use(Pixaforge, propertiesObject)
Plugin's styles
import '@filerobot/core/dist/style.css'
import '@filerobot/pixaforge/dist/style.css'
or if you prefer the minified version
import '@filerobot/core/dist/style.min.css'
import '@filerobot/pixaforge/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: 'Pixaforge'
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(used in importing the images from pixaforge).
locale: object
Type: object
Default: locales from filerobot's backend then default locale file with all labels is under lib/defaultLocale.js
.
You can override some labels by specifying a translation object here, such as:
{
strings: {
standardPortraits: 'Standard verticals' // overrides the default Standard portraits value to standard verticals
}
}
noIconsGallery
Type: boolean
Default: false
If used the icons gallery option will be removed from the plugin and only images will be available.