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