PDA

View Full Version : How to add HTML Heading H1 To H6 on TextField - Label or GridLabel in ExtJS



sharadtitan2006
9 Sep 2010, 4:14 AM
How to add HTML Heading H1 To H6 on TextField - Label or Grid - Label in ExtJS. Please provide help, its urgent.

Condor
9 Sep 2010, 4:29 AM
I don't understand the question... What do you want to do with <h1>-<h6> tags?

sharadtitan2006
9 Sep 2010, 4:47 AM
Thanks for the reply.
The Issue I have stated below:
-----------------------------
xtype: 'TextField',
name: 'name',
fieldLabel: 'Name',
width: 180
--------------------------------
We can provide label of text box or Grid Panel Label with <H2>, like this: fieldLabel: '<H2>Name</H2>'
Now, I can view the changes but can we not make on the global level or some other alternative is there?

Animal
9 Sep 2010, 5:07 AM
Every field label is to be a second level header?!

sharadtitan2006
9 Sep 2010, 5:11 AM
Yes

Condor
9 Sep 2010, 5:12 AM
Why would you want to? Why not style the fieldlabel the way you like it instead of introducing another element (which slows down rendering).

steffenk
9 Sep 2010, 8:22 AM
headers are nonsense as labels. Label are <label> and they are semantic part of an input in forms. Headers are not allowed in label tag.
Use displayField to display whatever in between.