1. Main configuration of Ext. Form. Label
Configuration item |
Type |
Description |
Forid |
String |
Inputid of the target component associated with the tag field |
Html |
String |
The HTML segment displayed in the innerhtml tag field. If the text configuration is specified at the same time, the HTML takes precedence. |
Text |
String |
Text displayed in the label |
2. Ext. Form. label example
Code:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > < Html Xmlns = "Http://www.w3.org/1999/xhtml" > < Head Runat = "Server" > < Title > Ext. Form. Field. label example </ Title > < Link Href = "Ext-4.0.7-gpl/resources/CSS/ext-all.css" REL = "Stylesheet" Type = "Text/CSS" /> < Script SRC = "Ext-4.0.7-gpl/Bootstrap. js" Type = "Text/JavaScript" > </ Script > < Script Type = "Text/JavaScript" > Ext. onready ( Function () {Ext. Create ( " Ext. Form. Panel " , {Title: " Ext. Form. Field. label example " , Width: 200 , Frame: True , Renderto: Ext. getbody (), bodypadding: 5 , Items: [{xtype: " Label " , Forid: " Username " , Text: " User Name " }, {Name: " Username " , Xtype: " Textfield " , Inputid: " Username " , Hidelabel: True }]}) ;}); </ Script > </ Head > < Body > </ Body > </ Html >
: