Skip to content

Instantly share code, notes, and snippets.

View n-qwed's full-sized avatar
😀

tateishi naohiro n-qwed

😀
  • tokyo
View GitHub Profile
@n-qwed
n-qwed / gist:6051566
Created July 22, 2013 05:53
extjs3 custom cell class
if (!Ext.grid.GridView.prototype.templates) {
Ext.grid.GridView.prototype.templates = {};
}
Ext.grid.GridView.prototype.templates.cell = new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable {css}" style="{style}" tabIndex="0" {cellAttr}>',
'<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>',
'</td>'
);
@n-qwed
n-qwed / jquery scope
Created October 11, 2012 09:04
apply scope to function
jQuery.scope = function(target,func){
return function() {
func.apply(target,arguments);
}
};