Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    1
    goyal.nitj is on a distinguished road

      0  

    Default Answered: How can we add maximize and minimize in EXTJS 4 portal

    Answered: How can we add maximize and minimize in EXTJS 4 portal


    How can we add maximize and minimize in EXTJS 4 portal example:


    http://docs.sencha.com/extjs/4.2.1/e...al/portal.html


    I know we can add maximize and minimize type in the toolbar. But I am not able to make maximize/minimize handler work.

    I tried this:

    Ext.define('Wifi.view.ViewportDashboardLayout', {
    extend: 'Ext.container.Viewport',
    xtype:'ViewportDashboardLayout',
    requires:['Ext.app.PortalColumn',
    'Ext.app.PortalPanel',
    'Ext.app.Portlet',
    'Ext.app.PortalDropZone'],

    getTools: function(){
    return [

    {
    type:'minimize',
    handler: function(e, target, panel)
    {

    var c = panel.up("viewport");
    c.getLayout().setActiveItem(0);
    c.doLayout();



    }
    },{
    type:'maximize',

    handler: function(e, target, panel)
    {

    var c = panel.up("viewport");
    var testPanel = Ext.getCmp("test1");

    var con=panel.ownerCt;
    testPanel.insert(0,con);
    c.getLayout().setActiveItem(1);
    c.doLayout();


    }

    }]
    },
    layout:'card',

    initComponent: function() {
    var me = this;
    Ext.apply(me, {
    items:[{
    items : [


    {
    //id: 'center-panel',
    xtype: 'portalpanel',
    region: 'center',
    //layout : "column",
    items: [{
    id: 'col-1',
    items: [
    {
    // id: 'portlet-1',
    title: 'Portlet 1',
    tools: this.getTools(),
    margin:'5 5 5 5',
    //layout:'fit',
    height:200,
    border:true,
    frame:true,
    html: '<center><b>Hello World!</b></center>'
    },
    {
    //id: 'portlet-2',
    margin:'5 5 5 5',
    //layout:'fit',
    tools: this.getTools(),
    height:200,
    title: 'Portlet 2',
    border:true,
    frame:true,
    html: '<center><b>Hello World Again!</b></center>'
    }
    ]

    },
    ]
    }]
    },{ //title: 'Portlet',
    xtype:'container',
    id:'test1',
    layout:'fit',
    border:true,
    frame:true}]


    });

    me.callParent(arguments);
    }

    });
    Maximize is working perfectly. On minimize portlets is getting disappeared.

  2. Got it working, by changing var con=panel.ownerCt; to var con=panel.ownerCt.initialConfig;

  3. #2
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    1
    goyal.nitj is on a distinguished road

      0  

    Default


    Got it working, by changing var con=panel.ownerCt; to var con=panel.ownerCt.initialConfig;

Tags for this Thread