-
11 Nov 2008 12:06 AM #1
How to make the rounded corners for panel
How to make the rounded corners for panel
I want to make the rounded corners for my simple panel.
I have tried with using frame : true.
But I want the bigger rounded corners
Please help meCode:Ext.onReady(function() { var myPanel = new Ext.Panel({ title : 'List', id : 'mypanel', frame : true, width : 300, style: 'margin:10px 50px', html : 'This is my Panel' }); myPanel.render(document.body); });
-
11 Nov 2008 12:47 AM #2
-
11 Nov 2008 12:58 AM #3
If you want them more rounded than that, then you will have to provide the images.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
11 Nov 2008 2:03 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
You can use:
orCode:baseCls: 'x-box'
but x-box doesn't support a header!Code:baseCls: 'x-box-blue'
-
11 Nov 2008 3:07 AM #5
Thanks,
baseCls: 'x-box'
worked but you are right it doesn't support header.
is there any other solution as animal suggested...
I don't know how to implement it.
please help me
-
11 Nov 2008 3:27 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Have a look at the stylesheet for x-panel, x-box, x-box-blue and x-window related rules.
If you create your own images and css rules you can style a panel anyway you want to.
-
23 Mar 2009 6:39 AM #7
hello
it's dont work for me with x-box, the panel is rendred with no border.
i want to have a similaire panel thay one in right side of API Documentation home page.Code:Ext.onReady(function(){ var p = new Ext.Panel({ id : 'mypanel', frame : true, width : 300, height:300, style: 'margin:10px 50px', html : 'This is my Panel', baseCls: 'x-box' }); });
newbie with ExtJS.
visit my Blog (use Zend Framework with ExtJS)
-
23 Mar 2009 7:19 AM #8
it's work now i have removed the title proprety
newbie with ExtJS.
visit my Blog (use Zend Framework with ExtJS)
-
23 Sep 2009 7:50 AM #9
Hi
When i gave panel baseCls:'x-box' it worked for me.But the buttons that are added to th panel is not displaying now.
Anybody please help...
Thanks in advance..
Regards
Rahesh
-
17 Dec 2010 2:50 PM #10
I realise this is an old post, but since it comes up in searches, I thought I would share another approach using CSS3:
Define a style for 'x-panel-header' and use the border-radius attribute. You will of course need to provide the variations needed for each known rendering engine (along with the standard version), otherwise it will be ignored. For example for Firefox:
-moz-border-radius: 10px 10px 0 0;
Note the variations are simply prefixed with "-o-", "-webkit-", etc. though worth checking in each of your targeted browsers. BTW this won't work in older browsers, such as IE6.


Reply With Quote