inputEx Documentation Back to homepage
Once you've grasped the main ideas behind inputEx, you'll probably want to create your own fields. Here are some hints on how to do so :
Choose the right parent Class
Look at the classes to pick the "closest" one. (in terms of code)
If you want to start from scratch, you should inherit from inputEx.Field
use YAHOO.extend to extend classes
Override methods
Some methods have a precise role :
Send the updated event
Fire this event to indicate modifications (with this.fireUpdatedEvt())
Register your type
After your class definition, you can associate your class to a type string. You can either create a new type, or override a previous one.
use inputEx.registerType("myType", inputEx.MyFieldClass);