To cooperate fields in ExtJs we are using ‘Ext.form.FieldSet‘ or ‘Ext.form.FieldContainer‘ but they are not so lightweight as a simple ‘<hr>’ tag which is used as an thematic break element in HTML. Unfortunately this lightweight GUI component is missing in ExtJS.

This implementation will not work with form layout. For form layout you can create pseudo field at the base of ‘Ext.form.field.Base‘ and change the rendering template.

The danger which lurks behind the usage of HR element is implementation of form classes with huge number of fields. Field containers allow us to split the form to subforms and manage them easily (divide et impera).

I would like to thank Scott Zirkel for css magic which I have used in the widget.

 

and the CSS:

And the sample: