Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. new App.Page({
  2. id: 'index',
  3. addOrUpdate: function() {},
  4. listeners: {
  5. load: function() {
  6. var controls = [
  7. new App.Form({
  8. id: 'profile',
  9. listeners: {
  10. load: function() {
  11. var controls = [
  12. new App.TextBox({
  13. id: 'name'
  14. })
  15. ];
  16.  
  17. this.addControl(controls);
  18. },
  19. save: function() {
  20. var values = this.getValue();
  21. //do whatever you want with the value
  22. }
  23. }
  24. })
  25. ];
  26.  
  27. this.addControl(controls);
  28. }
  29. }
  30. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement