Mozaik extension to embed raw content lik HTML markup into widget
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/components
styl
test/components
.babelrc
.eslintrc
.gitignore
.node-version
LICENSE.md
README.md
package.json
preview.png

README.md

mozaik-ext-embed

Embded content like HTML markup into widget. Handy to adding ambiguous content like raw HTML (iframe, html video etc.)

Setup

  1. Navigate into dashboard directory
  2. Install dependencies
npm i -S mozaik-ext-embed
  1. Register widget: ./src/App.jsx
import embed from 'mozaik-ext-embed';

Mozaik.Registry.addExtensions({ embed });
  1. Build dashboard
gulp build
  1. Restart dashboard
npm start

Widgets

Markup (embed.markup)

Show custom markup in widget

https://raw.githubusercontent.com/juhamust/mozaik-ext-embed/master/preview.png

parameters

key required description
content yes html content
title no widget title value

usage

{
  type: 'embed.markup',
  title: 'Live feed',
  content: '<iframe src="http://livefeed.com/"></iframe>',
  columns: 1, rows: 1, x: 0, y: 0
}

Development

Link peer dependencies (wherever you have 'em):

npm link ../mozaik
npm link ../mozaik/node_modules/react

license

MIT