0.1.3 • Published 7 years ago
@apepper/scrivito-youtube-video-widget v0.1.3
Scrivito Youtube Video Widget
A Scrivito widget that plays videos from YouTube.
Screenshot

Installation
Install the package in your scrivito app:
$ npm install @apepper/scrivito-youtube-video-widgetImport the widget in your javascript (e.g. in src/index.js or src/Widgets/index.js):
import "@apepper/scrivito-youtube-video-widget";Add the styling of the widget to your app.
This can be done by either loading it via css-loader (e.g. in src/index.js or src/Widgets/index.js):
import "@apepper/scrivito-youtube-video-widget/index.css"; Or by including the styling to your stylesheets (e.g. in src/assets/stylesheets/index.scss):
@import "~@apepper/scrivito-youtube-video-widget/index.css";Widget Configuration
In the widget properties you can set:
- YouTube video ID
- Aspect ratio
Check code quality
$ npm run eslintand
$ npm run es-check