Results 1 to 2 of 2

Thread: Working with component

  1. #1

    Default Working with component

    Code:
     var vHidden = ext.componentquery.query('ToolAddNote'); 
    var xHidden = ext.get('AddNote');
     vHidden.enable();
     xHidden.enable();
    I have a disabled button with idname : ToolAddNote and id : AddNote. But i can't enable it when write click event for another one. I don't know if my code have any wrong.

    Thank for your help

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    As long as you are getting the component instance you want it will work. Ext.get will return Element not a component.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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