Jun 06, 2012, 7:41 AM
[CLOSED] FieldLabel on non field controls
In Ext 1.3 I am using the FieldLabel property on Panels, Labels and Buttons - mostly as a simple tool to help align UserControls and so on with other standard form controls such as TextFields e.g.
In attempting to upgrade to 2.0 I see that FieldLabel is no longer available for Label, Button, Panel and other controls that don't inherit from the Field base class.
My question is - What is the recommended design pattern to get custom "non field" content both aligned with and labelled identically to regualr field controls in a FormLayout/AnchorLayout scenario.
(Also ChangeLog says "75. FormLayout has been removed. Use AnchorLayout." but FormLayout is still in the examples)
<ext:Panel ID="pnlA" runat="server" Border="false" Layout="FormLayout">
<Items>
<ext:TextField ID="txtB" runat="server" FieldLabel="My Textbox" />
<ext:Label ID="lblC" runat="server" FieldLabel="My Label" />
<ext:Checkbox ID="chkIsEnabled" runat="server" BoxLabel="Check me" />
<ext:Button ID="btnUpdateName" runat="server" FieldLabel="Perform Action">
</ext:Button>
<ext:Panel ID="pnlB" runat="server" FieldLabel="Label for UC">
<Content>
User control or other nested content here
</Content>
</ext:Panel>
</Items>
</ext:Panel>
In attempting to upgrade to 2.0 I see that FieldLabel is no longer available for Label, Button, Panel and other controls that don't inherit from the Field base class.
My question is - What is the recommended design pattern to get custom "non field" content both aligned with and labelled identically to regualr field controls in a FormLayout/AnchorLayout scenario.
(Also ChangeLog says "75. FormLayout has been removed. Use AnchorLayout." but FormLayout is still in the examples)
Last edited by Daniil; Jun 07, 2012 at 3:30 PM.
Reason: [CLOSED]