pinafore/routes/_components/dialog/showVideoDialog.js

18 lines
400 B
JavaScript
Raw Normal View History

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