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