I am currently working on a page that displays a dynamic title. However, when I attempt to change the title to h2 using HeaderCfg, it wraps the text in a span tag like this:
<h2 class=" x-unselectable">
<span class="x-panel-header-text">This is Title</span>
</h2>
Desired Output:
<h2 class=" x-unselectable x-panel-header-text">This is Title</h2>
Here is the code snippet:
myForm = new Ext.FormPanel({
title : Orginal.orginalTitle.get('get-title'),
headerCfg: {
tag: 'h2',
},
id : 'title-field',
});
Software Version: 3.4.0