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?
Printable View
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?
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.
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.
Summary:
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.