forked from cybrespace/pinafore
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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()
 | 
						|
}
 |