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");

 

2 responses to “Adding minimize button on cfwindow in coldfusion 9”

  1. Ads Says:
  2. ColdFusion 9 New Features Says:
    Well CF exposes certain things via tag attributes/JS config options - the collapsible option was *not* exposed by them for whatever reason. However, tapping into the underlying Ext.BasicDialog object allowed me to add the functionality. Essentially anything you can do with an Ext object you can do by tapping into the CF exposed object. Make sense?
  3. 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