Component with close button

  1. #1

    Component with close button

    Hi folks!

    First of all, excelent toolkit!

    Now, I little help: I have a div, inside that I wanna some component to allow close the component. I tested with "Panel" and "Window", first I don´t see any property to close panel; second, it position to center of webpage!

    Thanks,
    Diogo
  2. #2

    RE: Component with close button

    Hi Diogo,

    I think you want to "Collapse" the Window or Panel?

    The following code demonstrates how to Collapse/Expand a Window or Panel.

    Example

    // Client-side
    Window1.collapse();
    
    Window1.expand();
    
    //Server Side
    Window1.Collapse();
    
    Window1.Expand();
    By default the <ext:Window> will "Show" in the center-center of the Page on initial Page_Load. The following example demonstrates how to position the Window 100px from the Top-Left corner of the page.

    Example

    <ext:Window 
        ID="Window1" 
        runat="server" 
        Center&#111;nload="False"
        PageX="100px" 
        PageY="100px"
        />
    The above code samples are created using the 0.5 release.

    Geoffrey McGill
    Founder

Similar Threads

  1. Create a button to close a window
    By Orwel in forum 2.x Help
    Replies: 2
    Last Post: Aug 10, 2012, 12:16 PM
  2. How to display / hide 'close' button on Tab
    By Aod47 in forum 1.x Help
    Replies: 12
    Last Post: Dec 17, 2011, 11:07 AM
  3. [CLOSED] How can I close a tab using a button.
    By majunior in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 18, 2011, 3:00 PM
  4. [1.0] Portlet - Hide close button
    By serdias in forum 1.x Help
    Replies: 2
    Last Post: Nov 16, 2010, 10:10 PM
  5. Handling browser close Button
    By ranganath in forum 1.x Help
    Replies: 0
    Last Post: Jun 01, 2010, 3:27 AM

Posting Permissions