
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@filerobot/template-builder
Advanced tools
The template builder plugin used inside Filerobot Media Asset Management widget to handle different templates to be reused on the fly.
@filerobot/template-builder
The plugin is used for providing the functionality to create & edit templates to be used on the fly using the URL with different data.
npm install --save @filerobot/template-builder
yarn add @filerobot/template-builder
then
import TemplateBuilder from '@filerobot/template-builder'
...
...
...
filerobot.use(TemplateBuilder, propertiesObject)
The plugin from CDN is found inside Filerobot
global object Filerobot.TemplateBuilder
const TemplateBuilder = window.Filerobot.TemplateBuilder
...
...
...
filerobot.use(TemplateBuilder, propertiesObject)
import '@filerobot/core/dist/style.css'
or if you prefer the minified version
import '@filerobot/core/dist/style.min.css'
The plugin's css file should be imported after the Core's css file for having the styles shown correctly.
The plugin emits different events that you could subscribe to or add your handler to be called with the provided arguments passed while emitting/firing the event, the events are listed below with examples show the parameters for handler:
templateBuilder:modal-close
Emitted when template builder modal is closed.
params
: No params returned.
example
filerobot.on('templateBuilder:modal-close', () => {
console.log('Template builder modal is closed')
})
FAQs
The template builder plugin used inside Filerobot Media Asset Management widget to handle different templates to be reused on the fly.
We found that @filerobot/template-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.