pinafore/routes/_components/dialog/showVideoDialog.js

16 lines
356 B
JavaScript
Raw Normal View History

2018-02-05 17:43:45 +00:00
import VideoDialog from './VideoDialog.html'
2018-01-21 04:20:33 +00:00
export function showVideoDialog(poster, src, width, height, description) {
2018-01-21 04:20:33 +00:00
let videoDialog = new VideoDialog({
target: document.getElementById('modal-dialog'),
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-01-21 04:20:33 +00:00
}