cf_window Major Changes
First off I just want to thank everyone who mentioned the project and to all who provided comments, suggestions or feedback. With that being said I talked about some changes this morning that I thought needed to be made. Tonight I did an overhaul on the code for a couple reasons. The main problem with the old code is that you were not able to create multiple windows. This was easily solved by providing unique ids to each window, these ids can be user specified or auto generated. With this change I could no longer include the scripts and style sheets needed in the tag because if it was called multiple times the includes would pile up. With that came what I think will be good in the long run is to split out an include. For this particular project you can provide the widget name. In the future we can use this for multiple widgets, themes or a way to slim down the includes. Here is a basic example of the new implementation.
<html>
<head>
<title>cf_window / Basic Window Example</title>
<ext:include widget="cfwindow"/>
</head>
<body>
<ext:window title="A Basic Window" width="300" height="200">
I am <strong>html</strong>
</ext:window>
</body>
</html>
Here is the real gem in my mind though. I spent all night working on examples to show you what you can do with Ext and how easily you can do it with this custom tag. Head over to the demo link below and read through the examples. After I get some more feedback and work out a few bugs the next step is to slim down all of the includes and have some thoughts on how to do that. Let me know what you think!
