Last active
August 29, 2015 14:04
-
-
Save mthadley/b3fff3d50843c2f25e05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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