Dynamic Field Label
Plugin for dynamic field label widths.
This eliminates the need to specify a static labelWidth.
This is also useful if the Label requires different widths due to multilingualism.
ExtJS components that use the mixin Ext.form.Labelable and therefore the attributes labelWidth and fieldLabel can use the plugin to dynamically set the labelWidth based on the actual text width.
Example
{
xtype : "textfield",
plugins : ["bpcDynamicFieldLabel"],
fieldLabel: "Label"
}
If required, the additional spacing can be configured using labelOffset on the plugin:
Example with configured
labelOffset {
xtype : "textfield",
plugins: {
bpcDynamicFieldLabel: {
labelOffset: 10
}
},
fieldLabel: "Label"
}