mattsmith321
9 Apr 2007, 11:54 AM
Is it possible to create a new field that subclasses TriggerField and NumberField? If so, what are the basics to get me started? I've tried a couple of things, nothing has worked so far.
I have the need for an input field that has numeric constraints (like NumberField) and has the ability to initiate an action (like TriggerField). I know I could just start with NumberField and put in my own custom actions, but I like how the TriggerField blends in and would look very similar to the DateField functionality.
I ran across ChooserField: A TriggerField extension example (http://extjs.com/forum/showthread.php?t=3613&highlight=triggerfield), which is a great template to get me started subclassing the TriggerField but I'm not quite sure how to combine the two into one control.
Thanks!
I have the need for an input field that has numeric constraints (like NumberField) and has the ability to initiate an action (like TriggerField). I know I could just start with NumberField and put in my own custom actions, but I like how the TriggerField blends in and would look very similar to the DateField functionality.
I ran across ChooserField: A TriggerField extension example (http://extjs.com/forum/showthread.php?t=3613&highlight=triggerfield), which is a great template to get me started subclassing the TriggerField but I'm not quite sure how to combine the two into one control.
Thanks!