Adding minimize button on cfwindow in coldfusion 9

Add comments

Hi All,

I was working on migrating our project from Coldfusion 8 to Coldfusion 9. As CF9 use ExtJs 3.1 for ajax library I face lots of problem during migration. One of them is adding minimize button on cfwindow. In one of my cfwindow have minimize button to colapse cfwindow, now ExtJs 3.x have different structure than ExtJs 1.1 it wasn't working in ColdFusion 9. But this time I was really lucky, CF 9 (actually ExtJs 3.x) has make this really easy to add collapsible button on window title bar.

We need to get object on CFWINDOW using ColdFusion.Window.getWindowObject and make collapsible property to true and you will minimize button on window header.

Below is Javascript code.

objWin = ColdFusion.Window.getWindowObject("myWin");

objWin.collapsible = true;

ColdFusion.Window.show("myWin");

 

1 response to “Adding minimize button on cfwindow in coldfusion 9”

  1. Ads Says:
  2. Pritesh Says:
    You are right. getWindowObject will return ext object for basicDialog so you can do everything with that whatever functionlity available with extjs.

Leave a Reply



Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds