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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    Use ComponentQuery to try and resolve a component... container.down('button[prop=value]')
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •