Jan 3
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");
Jul 29, 2010 9:25 PM
Jun 4, 2010 at 8:10 AM 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?
Jun 5, 2010 at 12:15 PM You are right. getWindowObject will return ext object for basicDialog so you can do everything with that whatever functionlity available with extjs.