-
21 Mar 2009 3:25 PM #1
Borders, Components, and maybe 3.0
Borders, Components, and maybe 3.0
In my current project I am finding a need to wrap component level items with rounded borders. I know this doesn't come in the hierarchy till Window, but is there any chance that Borders have been moved to component in 3.0? If not is there by any chance a border decorator object that can apply to anything inherited from component? (If not I know my next subproject)
PS The current client of mine isn't going to purchase the license until after the 3.0 release, so I can't check myself.
Thanks
Deanna
-
21 Mar 2009 5:43 PM #2
I think you'll just need to skin the css as you want it.
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
21 Mar 2009 6:41 PM #3
That is what I would like, but Ext.Component/BoxComponent/Container does not a DOM model until the user adds them. But What I need is the 9 point border div's that Ext.Window provides - but I don't want all the overhead of a window, just needs to be a simple Component. If there were a decorator class that could decorate Ext.Component and its ancestors that would do the job, or if Ext.Component had an option to generate the border that would work too. That is what I was asking if anything like that is in 3.0.
-
21 Mar 2009 10:24 PM #4
frame: true is at the Panel level.
But I rarely use it. In a Viewport based application, you don't put fat, graphicy frames round the regions. For a start, frames in a layout looks weird. I see people do it here, and I reckon it looks weird.
And for another thing, screen real estate is at a premium in our app. We shoehorn a lot of data into the screen, I really don't want application chrome taking up more space than is necessary to describe the app.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
-
22 Mar 2009 7:45 AM #5
-
22 Mar 2009 8:21 AM #6
Actually, I think I've written a basic Box class which has none of the weight of Panel, but is just a BoxComponent with autoEl: 'div' who's onRender calls this.el.boxWrap()
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
-
22 Mar 2009 8:26 AM #7
Aren't you looking for el.BoxWrap() ?
-
22 Mar 2009 12:30 PM #8
-
22 Mar 2009 12:45 PM #9
Code:// special markup used throughout Ext when box wrapping elements Ext.Element.boxMarkup = '<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div> <div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div> <div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
22 Mar 2009 1:07 PM #10
Thanks MJ, Animal, and Pieturp I'll put that to good use. There all the time and I couldn't find it. I was looking in the higher level hierarchy, and since Component has an Element but doesn't inherit from it I didn't think to go there. You work with something for a year, and think you know it and find you can still be surprised.



Reply With Quote