Created
August 2, 2012 00:38
-
-
Save jgchristopher/3231943 to your computer and use it in GitHub Desktop.
Render dGrid Header Cell to have a dijit
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
renderHeaderCell: lang.hitch(this,function(node) { | |
var checkbox = new CheckBox({ | |
value : false, | |
label : "Include All ?", | |
onClick: lang.hitch(this, function(state) { | |
this._selectAll(state); | |
}), | |
declaredClass: "invoice-grid-include-all", | |
class : "invoice-grid-include-all" | |
}); | |
checkbox.placeAt(node); | |
this.selectAllCheckBox = checkbox; | |
domConstruct.create('label', {for: checkbox.id, innerHTML:"Included ?"}, node); | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment