开发者

Rendering ExtJs components without panels?

开发者 https://www.devze.com 2022-12-26 21:27 出处:网络
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号