Rendering ExtJs components without panels?
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html
On it, there are components rendered against a panel. I've been searching for a way to render components without a panel, so that they are laid out against empty background d开发者_开发百科irectly, without any window-like panels. Is there a way to accomplish this?
If you do not need the panel look, you can configure it by deleting the title, and the frame.
Yes, but it depends on what you're doing. Generically, you can render a Component to any containing element on the page (e.g., using the renderTo
config). However, certain types of components (like form fields) require certain types of containers/layouts (FormLayout) to render as expected.
When I want something like a panel without the overhead, I use Container and sometimes BoxComponent. I think of these components as light-weight panels; it turns out they are typically no more than a DIV. In earlier versions of Ext JS one had to include an autoEl parameter when configuring or else...
精彩评论