EXT.NET--FORM控件

<ext:FormPanel 
            ID="Panel1" 
            runat="server" 
            Title="Simple Form"
            BodyPaddingSummary="5 5 0"
            Width="350"
            Frame="true"
            ButtonAlign="Center"
            Layout="FormLayout">
            <FieldDefaults MsgTarget="Side" LabelWidth="75" />
            <Plugins>
                <ext:DataTip runat="server" />
            </Plugins>
            <Items>
                <ext:TextField runat="server" FieldLabel="First Name" AllowBlank="false">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your first name" />
                    </CustomConfig>
                    <AfterLabelTextTpl>
                        <Html>
                            <span style="color:red;font-weight:bold" data-qtip="Required">*</span>
                        </Html>
                    </AfterLabelTextTpl>
                </ext:TextField>
                <ext:TextField runat="server" FieldLabel="Last Name" AllowBlank="false">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your last name" />
                    </CustomConfig>
                    <AfterLabelTextTpl>
                        <Html>
                            <span style="color:red;font-weight:bold" data-qtip="Required">*</span>
                        </Html>
                    </AfterLabelTextTpl>
                </ext:TextField>
                <ext:TextField runat="server" FieldLabel="Company">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your employer's name" />
                    </CustomConfig>
                </ext:TextField>
                <ext:TextField runat="server" FieldLabel="Email" Vtype="email" AllowBlank="false">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your email address" />
                    </CustomConfig>
                    <AfterLabelTextTpl>
                        <Html>
                            <span style="color:red;font-weight:bold" data-qtip="Required">*</span>
                        </Html>
                    </AfterLabelTextTpl>
                </ext:TextField>
                <ext:DateField runat="server" FieldLabel="DOB">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your date of birth" />
                    </CustomConfig>
                </ext:DateField>
                <ext:NumberField runat="server" MinValue="0" MaxValue="100" FieldLabel="Age">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter your age" />
                    </CustomConfig>
                </ext:NumberField>
                <ext:TimeField runat="server" FieldLabel="Time" MinTime="08:00" MaxTime="18:00">
                    <CustomConfig>
                        <ext:ConfigItem Name="tooltip" Value="Enter a time" />
                    </CustomConfig>
                    <Plugins>
                        <ext:DataTip runat="server">
                            <Tpl>
                                <Html>
                                    Select time {date:date("G:i")}
                                </Html>
                            </Tpl>
                        </ext:DataTip>
                    </Plugins>
                </ext:TimeField>
            </Items>
            <Buttons>
                <ext:Button runat="server" Text="Save" Handler="this.up('form').getForm().isValid();" />
                <ext:Button runat="server" Text="Cancel" Handler="this.up('form').getForm().reset();" />
            </Buttons>
        </ext:FormPanel>


 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值