1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-09 07:58:43 +01:00

18 lines
400 B
JavaScript
Raw Normal View History

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