pinafore/routes/_components/dialog/showVideoDialog.js
2018-03-31 18:46:44 -07:00

18 lines
400 B
JavaScript

import VideoDialog from './VideoDialog.html'
import { createDialogElement } from './createDialogElement'
export function showVideoDialog (poster, src, width, height, description) {
let videoDialog = new VideoDialog({
target: createDialogElement(),
data: {
label: 'Video dialog',
poster,
src,
width,
height,
description
}
})
videoDialog.show()
}