View Full Version : Want to create extension off TwinTriggerField

Oct 06, 2008, 12:01 PM
I want to create a custom extension of Ext.Form.TwinTriggerField. I dont see that as a class in Coolite.Ext.Web. Should I just inherit from TriggerField instead? Any examples of a simple extension besides Portal?

Oct 06, 2008, 12:16 PM
Also, dont see a way to add a TriggerField to a FormLayout. Is this not possible at the moment? I want to see the scripts rendered for a TriggerField and tie it back to the server class so I know how to create a TwinTriggerField class and then my custom extension of it.

Oct 06, 2008, 12:47 PM
Got everything figured out =). I had to register the xtype for TwinTriggerField. Apparently, that's not already registered in Ext even though TwinTriggerField is a part of it.

1. Create a TwinTriggerField class that inherits from TriggerField
2. Create custom PickerField class that inherits from TwinTriggerField

I am sure it would have worked if I have my PickerField class inherits from TriggerField as long as my javascript class is defined correctly.