Bill Hutten: January 2012 Archives

Add "setLabel" to ExtJS 4 fields...

| | Comments (0)

A trivial override:

Ext.form.field.Base.override({
    setLabel: function (text) {
        if (this.rendered) {
            Ext.get(this.labelEl.id).update(text);
        }
        this.fieldLabel = text;
    }
});

About this Archive

This page is a archive of recent entries written by Bill Hutten in January 2012.

Bill Hutten: September 2011 is the previous archive.

Bill Hutten: May 2012 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.34-en