Results 1 to 2 of 2

Thread: bbar in Extjs

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6

    Default Answered: bbar in Extjs

    I have form Panel with a Combo Box, some labels, some display items, buttons and bbar(a button in it).


    The combo box has data "Enable" and "Disable". If "Enable" is clicked the bbar's Button should be enabled. If "Disable" is selected I need to Disable the bbar's button.

    Please help me in Doing this...I tried with vv.disable(); But, in vain.

    The code for is,

    Code:
    panel = Ext.create('Ext.form.Panel',{
                     url:'some url',
                     method:'some method',
                     frame:true,
                     id:'some id',
                     items:[
                            {
                               //some items
                             },
                             {
                                 //some items
                              }
                       ],
                      bbar:[
                               {
                                     xtype:'button',
                                     text:'some text',
                                     name:'vv',
                                     id:'vv',
                                     tooltip:'Hey ! do not hover over me !',
                                     handler: function(){
                                                       //some function is called here;
                                                   }
                                }
                        ]
                 });
    Last edited by gameboy87; 18 May 2012 at 1:33 AM. Reason: Haven't said what is to be asked.

  2. I tried with Ext.getCmp('vv').disable();

    It worked ...Thanks.

  3. #2
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6

    Default

    I tried with Ext.getCmp('vv').disable();

    It worked ...Thanks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •