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

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()
}