pinafore/routes/_components/dialog/showImageDialog.js

19 lines
418 B
JavaScript
Raw Normal View History

2018-02-05 18:43:45 +01:00
import ImageDialog from './ImageDialog.html'
2018-04-01 03:46:44 +02:00
import { createDialogElement } from './createDialogElement'
2018-02-09 07:29:29 +01:00
export function showImageDialog (poster, src, type, width, height, description) {
let imageDialog = new ImageDialog({
2018-04-01 03:46:44 +02:00
target: createDialogElement(),
data: {
label: 'Image dialog',
poster,
src,
type,
width,
height,
description
}
})
imageDialog.show()
2018-02-09 07:29:29 +01:00
}