[CLOSED] [1.0] add click event to panel top rightdiv

  1. #1

    [CLOSED] [1.0] add click event to panel top rightdiv

    I have an EXt.Panel with Frame property set to true and I have modified the syles to create my own borders.

    I want to add an 'onclick' event, that collapses and expands the panel, to the top right (x-panel-tr) image or div.

    Is this possible?
    Last edited by geoffrey.mcgill; Jul 26, 2010 at 6:57 AM.
  2. #2
    Hi,

    Please see the following code
    <ext:Panel runat="server" Frame="true" Height="200" Title="Panel">
            <Listeners>
                <AfterRender Handler="this.el.child('.x-panel-tr').on('click', this.toggleCollapse, this);" />
            </Listeners>
         </ext:Panel>

Similar Threads

  1. Go to other panel on button click event.
    By emon in forum 1.x Help
    Replies: 1
    Last Post: Apr 19, 2011, 10:49 AM
  2. Replies: 3
    Last Post: Mar 23, 2011, 5:32 PM
  3. Panel Click Event
    By Tror in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2010, 6:13 AM
  4. Show a panel on click event
    By CoolNoob in forum 1.x Help
    Replies: 2
    Last Post: Jan 01, 2010, 3:27 PM
  5. Hover and double-click event on Panel?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2009, 1:58 AM

Posting Permissions