View Full Version : Ext.plugin.FormEnterSubmit

11 Mar 2011, 11:33 AM
This may be the first unofficial plugin for ExtJS4 released to the public :D They don't have a forum for these releases so I'm posting here under they make one.

Anyway, as a convenient method of adding submitting of a form when pressing Enter, I have created this simple plugin.

GitHub: https://github.com/mitchellsimoens/Ext.plugin.FormEnterSubmit


plugins: [
ptype : "formentersubmit",
submitFn : someFunc

The submitFn is optional but of course it won't do anything if you don't specify it. It will submit under the scope of the component you placed the plugin under. It will just go through the items of the form and add the 'specialkey' listener to each and submit the submitFn. Very simple plugin.