Skip to content

Instantly share code, notes, and snippets.

View stlsmiths's full-sized avatar
🎯
Focusing

Todd Smith stlsmiths

🎯
Focusing
View GitHub Profile
<!doctype html>
<html>
<head>
<title>gallery-datatable-popup</title>
<script src="/build/yui/yui.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="dtable"></div>
<div id="logger"></div>
@stlsmiths
stlsmiths / gist:4536300
Created January 15, 2013 05:12
yogi nodejs stack dump
todds-Mac-Pro:gallery-datatable-contextmenu todd$ ll
total 40
drwxr-xr-x 14 todd staff 476 Jan 14 22:58 ./
drwxr-xr-x 14 todd staff 476 Jan 14 01:52 ../
drwxr-xr-x 10 todd staff 340 Jan 14 23:06 .git/
-rw-r--r-- 1 todd staff 146 Jan 14 09:21 HISTORY.md
-rw-r--r-- 1 todd staff 518 Jan 14 14:44 README.md
drwxr-xr-x 4 todd staff 136 Jan 14 14:20 assets/
-rw-r--r-- 1 todd staff 262 Jan 14 14:21 build.json
-rw-r--r-- 1 todd staff 659 Jan 14 01:54 build.properties
// showEditor
oe.showEditor(td6);
inp = oe._inputNode;
// ESC cancelEditor
td6.simulate('click');
//inp.focus();
inp.simulate('keypress',{charCode:72}); // 4:52 H:72 i:105
inp.simulate('keypress',{charCode:52}); // 4:52 H:72 i:105
inp.simulate('keydown',{keyCode:27});
@stlsmiths
stlsmiths / gist:9430a6c0cb2e69e638e5
Created May 27, 2014 20:05
template for datatable
<table class="table table-bordered table-hover table-condensed">
<thead>
<tr>
<th>- Actions -</th>
<th ng-repeat="col in cols" ng-click="columnClick(col)" data-col-index="{{$index}}" class="">{{col.key}}</th>
</tr>
</thead>
<tbody class="body-scroll">
<tr ng-repeat="row in rows | orderBy:sortCol">
<td class="center" style="min-width:175px;width:175px;">