Skip to content

Instantly share code, notes, and snippets.

@mwarkentin
Created September 3, 2011 03:49
Show Gist options
  • Save mwarkentin/1190522 to your computer and use it in GitHub Desktop.
Save mwarkentin/1190522 to your computer and use it in GitHub Desktop.
Sencha Touch setFieldLabel()
Ext.override(Ext.form.Field, {
setFieldLabel : function(text) {
if (this.rendered) {
this.el.down('.x-form-label').update(text);
}
this.fieldLabel = text;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment