icefeeling的家园

生活就是一本书,需要我们用心去读

 

What is the basic thing to keep in mind about forms

What is the basic thing to keep in mind about forms?
  • A BasicForm is not a layout managing Container. It exists solely to manage a collection of Ext.form.Field objects. Those Fields need to be rendered.
  • You need to add Fields to an Ext.form.FormPanel which is a Container which manages child Components, rendering them and sizing them where configured.
  • A FormPanel owns a BasicForm which is used to perform submissions and loads.
  • In order to render Fields correctly with labels, the container they are in (no matter what kind of Panel it is) must have layout:'form'. This is because it is the layout manager that actually renders child items. Only the FormLayout class knows how to render form Fields with all their extra wrappings.

posted on 2008-11-25 21:51  lzb  阅读(88)  评论(0编辑  收藏  举报

导航