4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
12 Roo.BLANK_IMAGE_URL = "../../images/default/s.gif";
21 show : function(data, cb)
23 // standard code example..
30 this.dialog.show(data._el ? data._el : false);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
44 xtype : 'LayoutDialog',
54 var p = this.layout.getRegion('center').getPanel(0);
55 p.setContent("Hello World");
58 keydown : function(dlg, e) {
60 if(k == 27){ _this.dialog.hide(); }
64 xtype: 'LayoutRegion',
69 xtype: 'ContentPanel',
104 // using onDocumentReady instead of window.onload initializes the application
\r
105 // when the DOM is ready, without waiting for images and other resources to load
\r
106 Roo.onReady(function() {
108 Roo.get('show-dialog-btn').on('click',function () {
109 HelloWorld.show({ _el : this});