Guest User

form reset controller

a guest
Mar 14th, 2014
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Stored in app/controller/form1.js
  2. Ext.define('myapp.controller.form1', {
  3. extend: 'Ext.app.Controller',
  4.  
  5. config: {
  6. refs: {
  7. form1: 'form1Me',
  8. form1Submit:: 'form1Me container button[action=sub]',
  9. form1Reset:: 'form1Me container button[action=res]',
  10. },
  11. control: {
  12. 'form1Reset' : {
  13. tap: 'onForm1Reset'
  14. }
  15.  
  16. }
  17. },
  18. onForm1Reset = function(element,e){
  19. var fo = form1.reset();
  20.  
  21.  
  22. }
  23. });
RAW Paste Data