import {gadgetui} from '/lib/gadget-ui/dist/gadget-ui.es6.js';

var fp1 = gadgetui.objects.Constructor( gadgetui.display.Dialog,
	[ document.querySelector("#dlg1"),
		{
			top: 200,
			left: 200,
			title : "Some Dialog",
			path : "/dist/",
			enableShrink : false,
			overflow: "hidden",
			buttons: [
				{ label: 'Save', click: function(){ 
                  console.log( 'Saved')
                }},
				{ label: 'Cancel', click: function(){ 
                	fp1.close();
                }}
			]
		}] );
