Results 1 to 4 of 4

Thread: Putting doublclick event on a Panel header

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    Cave
    Posts
    178
    Vote Rating
    2
      0  

    Default Putting doublclick event on a Panel header

    Hi,
    I want to add a 'doubleclick' event on the header of my Ext.Panel.
    I am not having any luck using the headerCfg property.
    Can someone set me straight ?
    I'm sure it's something simple, but my brain is slow today.

    Thanks!


    PS. one more quick question. Is there a config option that puts the 'expand' button on the left side of an expandable panel instead of the right ?

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    12
      0  

    Default

    Code:
    myPanel.header.on('dblclick', function(e, t, o)
    {
     // Your code.
    });

  3. #3
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    12
      0  

    Default

    To put the expand on the left, give your Panel an id value and override the x-tool css, e.g.,

    Code:
     
    <style>
    #myPanelId .x-tool
    {
     float: left;
    }
    </style>

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    Cave
    Posts
    178
    Vote Rating
    2
      0  

    Default

    thanks so much fay. appreciate the quick response!

Similar Threads

  1. Ext.Panel + putting padding on outer div?
    By chinabuffet in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Jun 2010, 4:07 AM
  2. Putting text into a Panel with userStore
    By shibbywowdude in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Feb 2010, 10:02 AM
  3. Putting a table in a grid column header
    By mankz in forum Community Discussion
    Replies: 0
    Last Post: 8 Sep 2009, 11:42 PM
  4. Click event on header of Panel Component
    By dpasichnik in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Nov 2007, 3:14 PM

Posting Permissions

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