1. #1
    Sencha User
    Join Date
    Nov 2009
    Posts
    24
    Vote Rating
    0
    haydar is on a distinguished road

      0  

    Default Collapsible panel?

    Collapsible panel?


    hi,
    i have a question...
    how can make a panel collapsible?
    thanks...

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Code:
    panel.setCollapsible(true);

  3. #3
    Sencha User
    Join Date
    Nov 2009
    Posts
    24
    Vote Rating
    0
    haydar is on a distinguished road

      0  

    Default


    thanks for the answer...

    i have a vertical panel but it doesn't have a method called setCollapsible(),
    what can i do?

  4. #4
    Sencha User
    Join Date
    Nov 2009
    Posts
    24
    Vote Rating
    0
    haydar is on a distinguished road

      0  

    Default


    ok let me be more clear.

    i want to have three panels in another container. the left and right panels must be collapsible.
    the center panel must resize automatically when the left and right panels collapse and expand.

    how can i do that?

    thanks a lot...

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    A contentpanel is the only panel that can be collapsed

  6. #6
    Sencha User
    Join Date
    Nov 2009
    Posts
    24
    Vote Rating
    0
    haydar is on a distinguished road

      0  

    Default


    thanks sven.

    i have done what i wanted so far. but there is one thing that i couldn't manage to do.
    I want to make the left and right panels come collapsed. I wrote:

    eastPanel.setExpanded(false);
    westPanel.setExpanded(false);

    but their header bars stand there and ">>" button doesn't work.
    How can I make them collapsed first and expanded when I click "<<" or ">>" buttons?

  7. #7
    Sencha User
    Join Date
    Nov 2009
    Posts
    24
    Vote Rating
    0
    haydar is on a distinguished road

      0  

    Default


    ok i have found the answer sorry for asking before searching...

    http://www.yui-ext.com/forum/showthread.php?p=392272

Thread Participants: 1