1. #1
    Ext User
    Join Date
    May 2008
    Posts
    6
    Vote Rating
    0
    vik is on a distinguished road

      0  

    Default how to get tab panel title from activate listener

    how to get tab panel title from activate listener


    Hi. Quick question...how do I get the tab panel's title from the activate listener? I'm trying to write a tab activate listener to load info into a GridPanel dynamically depending on which tab is selected. I noticed that there's a convenience method setTitle in Panel, but not a getTitle. Any ideas? Thanks in advance.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    you can use the tabpanel's tabchange event. it's detailed in the docs.

  3. #3
    Ext User
    Join Date
    May 2008
    Posts
    6
    Vote Rating
    0
    vik is on a distinguished road

      0  

    Default


    >you can use the tabpanel's tabchange event. it's detailed in the docs.

    No, that still doesn't help me. Sure I can use a different listener, but I still get Panel objects and I don't see how to get the title from the panel.

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      -1  

    Default


    did you actually READ it?!

    activate : ( Ext.Panel p )
    Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel.
    Listeners will be called with the following arguments:

    * p : Ext.Panel
    The Panel that has been activated.

  5. #5
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    and you can access the panel.title attribute.

  6. #6
    Ext User
    Join Date
    May 2008
    Posts
    6
    Vote Rating
    0
    vik is on a distinguished road

      0  

    Default


    did you actually READ it?!

    activate : ( Ext.Panel p )
    Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel.
    Listeners will be called with the following arguments:

    * p : Ext.Panel
    The Panel that has been activated.

    Yes, I did. You're not understanding the question. I have one activate/tabChange listener for the tabPanel. I need to obtain the title of the panel object that gets passed in to my listener. How do I do that?

  7. #7
    Ext User
    Join Date
    May 2008
    Posts
    6
    Vote Rating
    0
    vik is on a distinguished road

      0  

    Default


    Thanks, it works. Just checked, and it's not documented as being a public property of the Panel, but only a property of the config object. That's why I didn't know.

  8. #8
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    explore the object

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi