Guest User

Untitled

a guest
Jan 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Ext.Loader.setConfig({enabled:true});
  2.  
  3. Ext.application({
  4. name: 'app',
  5. controllers:[
  6. ],
  7. appFolder: 'app',
  8. launch: function() {
  9. var panel = new Ext.form.FormPanel({
  10. renderTo:Ext.getBody(),
  11. title:'Panel',
  12. width:400,
  13. bodyPadding: 10,
  14. autoHeight:true,
  15. items:[{
  16. xtype:'textareafield',
  17. name: 'textInput',
  18. id:'textId',
  19. value:'why not'
  20. },{
  21. xtype:'button',
  22. text:'Helllo',
  23. handler:function(){
  24. console.log('button click')
  25. var tf = Ext.get('textId');
  26. tf.setValue('This should change!')
  27. }
  28. }],
  29. });
  30. }
  31. });
Add Comment
Please, Sign In to add comment