Skip to content

Instantly share code, notes, and snippets.

@mthadley
Last active August 29, 2015 14:04
Show Gist options
  • Save mthadley/b3fff3d50843c2f25e05 to your computer and use it in GitHub Desktop.
Save mthadley/b3fff3d50843c2f25e05 to your computer and use it in GitHub Desktop.
renderUI: function() {
var instance = this,
templateNode = instance.get('templateNode'),
labelNode = instance.get('labelNode');
A.FormBuilderCheckBoxField.superclass.renderUI.apply(instance, arguments);
// labelNode.insert(templateNode, labelNode, 'before');
// Works, result is <input><label></label></input>
templateNode.prepend(labelNode);
// Does not work, result is just <label></label>
labelNode.prepend(templateNode);
}
_uiSetLabel: function(val) {
var instance = this,
labelNode = instance.get('labelNode');
// This line right hereee
labelNode.setContent(AEscape.html(val));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment