Dynamic Field Label

Plugin for dynamic Field Labels wide. This eliminates the need to specify a static labelWidth. This is also useful if the Label is defined by Multilingualism

ExtJS components that use the mixin Ext.form.Labelable and therefore the attributes labelWidth and fieldLabel can use the plugin to dynamically set 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"
      }