BKS Saha

BKS Saha

  • NA
  • 44
  • 18.2k

How to create ExtJS elements with dynamic id ExtJs 3.0?

Apr 19 2018 2:08 AM
At a time in function need to pass with id and without id(null).Static it is working but how i will make this in dynamic. Here winCreatePand is model window id.
  1. { xtype: 'button',  
  2. text: 'Generate',  
  3. id: 'btnGenerate',  
  4. width: 65,  
  5. style: 'margin-left: 10px',  
  6. handler: function()  
  7. { PandDataProvider.GetPandId();  
  8. PandDataProvider.GetPandId('winCreatePand');  
  9. },  
  10. scope: this  
  11. }