pinafore/routes/_components/dialog/showImageDialog.js

17 lines
374 B
JavaScript
Raw Normal View History

2018-02-05 18:43:45 +01:00
import ImageDialog from './ImageDialog.html'
export function showImageDialog(poster, src, type, width, height, description) {
let imageDialog = new ImageDialog({
target: document.getElementById('modal-dialog'),
data: {
label: 'Image dialog',
poster,
src,
type,
width,
height,
description
}
})
imageDialog.show()
}