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