20 lines
508 B
JavaScript
20 lines
508 B
JavaScript
import VideoDialog from '../components/VideoDialog.html'
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
import { createDialogId } from '../helpers/createDialogId'
|
|
|
|
export function showVideoDialog (poster, src, width, height, description) {
|
|
let videoDialog = new VideoDialog({
|
|
target: createDialogElement(),
|
|
data: {
|
|
id: createDialogId(),
|
|
label: 'Video dialog',
|
|
poster,
|
|
src,
|
|
width,
|
|
height,
|
|
description
|
|
}
|
|
})
|
|
videoDialog.show()
|
|
}
|