Skip to content

Instantly share code, notes, and snippets.

@jgchristopher
Created August 2, 2012 00:38
Show Gist options
  • Save jgchristopher/3231943 to your computer and use it in GitHub Desktop.
Save jgchristopher/3231943 to your computer and use it in GitHub Desktop.
Render dGrid Header Cell to have a dijit
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