Results 1 to 4 of 4

Thread: Add a link in a panel header

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default Add a link in a panel header

    I have read in the API that it is easy to add a predefined Tool icon to a panel header.

    But I would like to add a custom link that concatenates the text "Log out" and a Icon (Log out [image]).

    Can anybody orientate me?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,337
    Answers
    3993
    Vote Rating
    1487
      0  

    Default

    The header is just a Container using HBox (or VBox for headers on the left/right) so you can add/remove what you need just like you would to a normal Container.
    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
    Nov 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default

    But
    how do I get a reference to the header?

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,337
    Answers
    3993
    Vote Rating
    1487
      0  

    Default

    Quote Originally Posted by jfmateos2 View Post
    But
    how do I get a reference to the header?
    Code:
    panel.down('header');
    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

Posting Permissions

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