19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
import ImageDialog from './ImageDialog.html'
|
|
import { createDialogElement } from './createDialogElement'
|
|
|
|
export function showImageDialog (poster, src, type, width, height, description) {
|
|
let imageDialog = new ImageDialog({
|
|
target: createDialogElement(),
|
|
data: {
|
|
label: 'Image dialog',
|
|
poster,
|
|
src,
|
|
type,
|
|
width,
|
|
height,
|
|
description
|
|
}
|
|
})
|
|
imageDialog.show()
|
|
}
|