karga
7 Jul 2009, 3:52 AM
The formfield classes allow for classes to be added several places, but wouldn't it be a nice feature to also allow for classes on the "form-item"?
The code below is the result of adding classes (the ones i found - maybe it's already an option):
<div class="x-form-item " tabindex="-1">
<label class="x-form-item-label" style="width: 70px;" for="ext-comp-1009">fieldLabel</label>
<div id="x-form-el-ext-comp-1009" class="x-form-element ctCls" style="padding-left: 75px;">
<input id="ext-comp-1009" class=" x-form-text fieldClass cls" type="text" name="ext-comp-1009" autocomplete="off" size="20" style="width: 122px;"/>
</div>
<div class="x-form-clear-left"/>
</div>
How come the fieldClass- and cls-config point to the same place? My problem now is that i want to style the x-form-item, but not all form-items
I figured the containerclass ctCls would be the one i needed, but the class doesn't land on the class i would call the container
Edit: The div spans "under" the label, so background style works, but fx font-size wont
The code below is the result of adding classes (the ones i found - maybe it's already an option):
<div class="x-form-item " tabindex="-1">
<label class="x-form-item-label" style="width: 70px;" for="ext-comp-1009">fieldLabel</label>
<div id="x-form-el-ext-comp-1009" class="x-form-element ctCls" style="padding-left: 75px;">
<input id="ext-comp-1009" class=" x-form-text fieldClass cls" type="text" name="ext-comp-1009" autocomplete="off" size="20" style="width: 122px;"/>
</div>
<div class="x-form-clear-left"/>
</div>
How come the fieldClass- and cls-config point to the same place? My problem now is that i want to style the x-form-item, but not all form-items
I figured the containerclass ctCls would be the one i needed, but the class doesn't land on the class i would call the container
Edit: The div spans "under" the label, so background style works, but fx font-size wont