Results 1 to 3 of 3

Thread: Check if button exists -- Hide/Show /\\/ Remove/Add

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Leeds
    Posts
    2
    Vote Rating
    0
      0  

    Default Check if button exists -- Hide/Show /\\/ Remove/Add

    I have everything working until this. The only thing I need now is some help on finding whether a button exists. This all has to be done on the click on a DataView. The button needs to be added to a NavigationView and then if they click the back button on the DataView it removes the button that was just added.

    What really need the help with is finding out how to hide and show the button on the click of the DataView item and on the 'Back' button click on the NavigationView.

    Thanks in advanced.

    Hughesy97

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    Use ComponentQuery to try and resolve a component... container.down('button[prop=value]')
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Leeds
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thanks, I wil try that

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
  •