Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new App.Page({
- id: 'index',
- addOrUpdate: function() {},
- listeners: {
- load: function() {
- var controls = [
- new App.Form({
- id: 'profile',
- listeners: {
- load: function() {
- var controls = [
- new App.TextBox({
- id: 'name'
- })
- ];
- this.addControl(controls);
- },
- save: function() {
- var values = this.getValue();
- //do whatever you want with the value
- }
- }
- })
- ];
- this.addControl(controls);
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement