Results 1 to 4 of 4

Thread: Configure collapse control for panels

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Vote Rating

    Default Answered: Configure collapse control for panels

    I'm looking for a way to configure panels so that the collapse tool that appears with collapsible: true renders on the left hand side of the panel, before the title object.

    There's a hacky way suggested under collapseFirst on Ext.panel.Panel's documentation page, but this can adversely impact render time if you're rendering a lot of collapsible panels at the same time.

    Is there, or are there plans to develop, something like a collapseAlign configuration?

  2. ..ok. I do believe I got it looking at Ext.panel.Header.

    for anybody else looking into this, my solution was:

    Ext.define('myapp.view.repeatingpanel', {
        extend: 'Ext.form.Panel',
        collapsible: true,
        header: {        
            listeners: {
              beforerender: function(header) {
                  var collapsetool =[0];
                  //this.log('before render',header);

Tags for this Thread

Posting Permissions

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