-
15 Dec 2011 2:32 AM #1
Answered: how to "float in" a collapsed floatable panel?
Answered: how to "float in" a collapsed floatable panel?
How can i make below floating panel to float in (slide in,show) using script (and not by clicking on placeholder)?
PS. panel.expand() is not an answer (it wont be floating anymore).Code:Ext.create('Ext.Window',{ autoShow:true, width:700, autoDestroy:true, height:500, layout:'border', items:[{ region:'center', html:'i need to be laid all the time - dont touche me or resize. thats the point' },{ region:'east', collapsed:true, collapsible:true,frame:true,border:true, hideCollapseTool:true, title:'floating panel' html:'I want to be collapsed on start. i never want to be "expanded" rather float over previous sibling.', width:500, floatable:true, xtype:'form', resizable:false }] });
PS.2. or just How can i fire click event on placeholder (header).
-
Best Answer Posted by mitchellsimoens
ON the border layout in 4.0.x, there is a method, floatCollapsedPanel that takes two arguments. The first is a tricky one as it wants an EventObject and the second is the component.
-
15 Dec 2011 2:27 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
- Answers
- 3106
ON the border layout in 4.0.x, there is a method, floatCollapsedPanel that takes two arguments. The first is a tricky one as it wants an EventObject and the second is the component.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Dec 2011 11:53 PM #3
my applogy - i was wrong - You can be realy helpful if you want - thankyou :)
my applogy - i was wrong - You can be realy helpful if you want - thankyou :)
for now working example looks like this:
Code:Ext.getCmp('my1').getLayout().floatCollapsedPanel(Ext.EventObject,Ext.getCmp('my2'));Code:Ext.create('Ext.Window',{ autoShow:true, width:700, autoDestroy:true, height:500, id:'my1', layout:'border', items:[{ region:'center', html:'i need to be laid all the time - dont touche me or resize. thats the point' },{ region:'east', id:'my2', collapsed:true, collapsible:true,frame:true,border:true, hideCollapseTool:true, title:'floating panel', html:'I want to be collapsed on start. i never want to be "expanded" rather float over previous sibling.', width:500, floatable:true, xtype:'form', resizable:false }] });


Reply With Quote