pinafore/routes/_components/dialog/showImageDialog.js

18 lines
376 B
JavaScript
Raw Normal View History

2018-02-05 17:43:45 +00:00
import ImageDialog from './ImageDialog.html'
2018-02-09 06:29:29 +00:00
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()
2018-02-09 06:29:29 +00:00
}