Oct 08, 2008, 10:54 AM
[CLOSED] Set default listeners, properties for all textboxes in application
I have an application requirement where all textfields must have property X set to 'Blah' and must have a listener on the change event to execute some 'Y' javascript. There can be multiple developers working on the same project, and I want to ensure that property and that listener are always set correctly. I thought of creating a custom class that inherits from Coolite's TextField and default the property and listener. That isn't ideal because someone may choose to still use Coolite's TextField instead of the custom one. Is there a way to do this in javascript by overriding the Ext TextField class? I been looking up Ext.override but that seems to override functionality of an existing method. Ext.Extend sounds promising but that creates a new class in javascript and I will have to create another new server class too.