Extension or Plugin?

Monday, April 28th, 2008

Preface I believe that many of Ext users have already thought about adding some custom functionality that is not present in core Ext Library to a class. Something that is specific to their applications or not that specific so that others could also be interested in such feature. OK, we have the ...

Array Overrides

Thursday, April 17th, 2008

On the way of development of my project I came to need to have set methods for javascript Array object especially intersection. Googling has shown up some but they were not LGPL, the licence what I need, so I've written them. The following override contains: Ext message box input type configuration Conditional Ext.overrideIf New ...

Writing a Big Application in Ext (Part 1)

Saturday, April 12th, 2008

Preface I have decided to write this article for those users of Ext 2.x that have already grown up from having one HTML page with embedded script that creates one simple window or form, for those who are already decided that Ext is the way and for those who are fighting ...

Designing a 3 columns web page using TableLayout

Saturday, April 5th, 2008

See also: Simplest 3 Columns Layout with CSS Design Goals I have decided to re-design my webpage because I used some nested floating divs and I started to lose track of the hierarchy and css rules assigned to them. The design goals were: Fixed width content area always displayed centered in the ...

How to build a Tree from static data

Friday, April 4th, 2008

Ext.BLANK_IMAGE_URL = '../ext/resources/images/default/s.gif'; Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var children = [{ text:'First Level Child 1' ,children:[{ text:'Second Level Child 1' ...

How to keep expanded state of Accordion items

Friday, April 4th, 2008

One of the possible solutions is: Ext.BLANK_IMAGE_URL = '../ext/resources/images/default/s.gif'; Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); Ext.onReady(function(){ var p = new Ext.Panel({ title: Ext.fly('title').dom.innerHTML ...

JavaScript Extension File Pattern

Thursday, April 3rd, 2008

// vim: ts=4:sw=4:nu:fdc=4:nospell /*global Ext, AnExtension */ /** * @class AnExtension * @extends Ext.Panel * * AnExtension description * * @author Ing. Jozef Sakáloš * @copyright (c) 2010, by Ing. Jozef Sakáloš * @date * 11. March 2010 * * @version ...

JavaScript Plugin File Pattern

Thursday, April 3rd, 2008

// vim: sw=4:ts=4:nu:nospell:fdc=4 /** * A Plugin * * @author Ing. Jozef Sakáloš * @copyright (c) 2008, by Ing. Jozef Sakáloš * @date 3. April 2008 * @version $Id$ * * @license plugin.js is licensed under the terms of the Open ...

Button With Buffered Clicks

Wednesday, April 2nd, 2008

My users are used to double-clicks to such a degree that they double-click everything, also buttons. This has created the problem with buttons that add records to grid as always two records were added. Here is handling: this.toolbar.add({ id:this.id + '-btn-add-record' ,text:this.addText ,tooltip:this.addRecordText ,iconCls:'icon-plus' ,disabled:true ...

Return Value of Function as items Pattern

Wednesday, April 2nd, 2008

,items:(function(){ var items = []; // populate items array return items; }).createDelegate(this)()