Dojo Small Example (36) ResizableDialog Widget Scalable dialog

Add zoom function to dialog

define([ "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojox/layout/ResizeHandle", "dojox/widget/DialogSimple"],function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, ResizeHandle, DialogSimple){ return declare([DialogSimple], {templateString:'', resizable: false, resizeAxis: "xy", postCreate: function(){ this.inherited(arguments); if(! this.resizable){ this.resizeHandle.style.display = "none";} }, startup: function(){ this.inherited(arguments); if (this.resizable) {this.containerNode.style.overflow = "auto "; this._resizeHandle = new ResizeHandle({ targetId: this.id, resizeAxis: this.resizeAxis },this.resizeHandle);} }, hide: function() {this.onHide(); this.inherited(arguments); }, onHide: function () {} });});

< /p>

Leave a Comment

Your email address will not be published.