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 : 'BasicDialog',
75 keydown : function(dlg, e) {
77 if(k == 27){ _this.dialog.hide(); }
87 // using onDocumentReady instead of window.onload initializes the application
\r
88 // when the DOM is ready, without waiting for images and other resources to load
\r
89 Roo.onReady(function() {
90 var showBtn = Roo.get('show-dialog-btn');
91 showBtn.on('click',function () {
92 HelloWorld.show({ _el, this});