Embded content like HTML markup into widget. Handy to adding ambiguous content like raw HTML (iframe, html video etc.)
NOTE: If you're looking for a solution to refresh image URL periodically, please consider mozaik-ext-image -extension instead. This mozaik-ext-embed
-extension relies source to update itself whenever needed, if at all.
- Navigate into dashboard directory
- Install dependencies
npm i -S mozaik-ext-embed
- Register widget:
./src/App.jsx
import embed from 'mozaik-ext-embed';
Mozaik.Registry.addExtensions({ embed });
- Build dashboard
gulp build
- Restart dashboard
npm start
Show custom markup in widget
key | required | description |
---|---|---|
content |
yes | html content |
title |
no | widget title value |
{
type: 'embed.markup',
title: 'Live feed',
content: '<iframe src="http://livefeed.com/"></iframe>',
columns: 1, rows: 1, x: 0, y: 0
}
Link peer dependencies (wherever you have 'em):
npm link ../mozaik
npm link ../mozaik/node_modules/react
MIT