pinafore/routes/_components/dialog/showVideoDialog.js

18 lines
400 B
JavaScript
Raw Normal View History

2018-02-05 18:43:45 +01:00
import VideoDialog from './VideoDialog.html'
2018-04-01 03:46:44 +02:00
import { createDialogElement } from './createDialogElement'
2018-01-21 05:20:33 +01:00
2018-02-09 07:29:29 +01:00
export function showVideoDialog (poster, src, width, height, description) {
2018-01-21 05:20:33 +01:00
let videoDialog = new VideoDialog({
2018-04-01 03:46:44 +02:00
target: createDialogElement(),
2018-01-21 05:20:33 +01:00
data: {
label: 'Video dialog',
poster,
src,
width,
height,
description
2018-01-21 05:20:33 +01:00
}
})
videoDialog.show()
2018-02-09 07:29:29 +01:00
}