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
<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;"> |
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
// 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}); |
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
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 |
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
<!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> |
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
BaseView = Y.Base.create('baseview', Y.View,[],{ | |
// | |
// my awesome BaseView statics and methods | |
// | |
},{ | |
ATTRS:{ | |
// | |
// my awesome BaseView ATTRS | |
// | |
} |
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
/** | |
This assumes you have "data" with the following "keys" defined, | |
customer_id, customer_name, carrier_name, carrier_id | |
It defines an HTML template as the base link HTML and uses a | |
YUI3 substitution function (Y.Lang.sub) to safely replace the | |
tokens within the htmlTMPL. | |
You must have "allowHTML:true" set for this to work properly. |
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
// if you're using DataSource.IO see http://yuilibrary.com/yui/docs/api/classes/DataSource.IO.html#event_response | |
// if you're using DataSource.Get see http://yuilibrary.com/yui/docs/api/classes/DataSource.Get.html#event_response | |
// listen for the DS response as .... | |
myYUI3DataSource.after('response', function(o) { | |
/* the response object contains the following; | |
o.response.meta, = meta fields parsed from the DataSchema "metaFields" |
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
// | |
var dt = new Y.DataTable({ | |
columns: ... | |
paginator: ..... | |
requestStringTemplate: "?page={page}&itemsPerPage={itemsPerPage}&sortBy={sortBy}" // or whatever | |
}); |
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
// | |
// Double-click on a cell in last column "Trans Date", opens a pop-up Calendar | |
// in an Overlay | |
// http://www.blunderalong.com/yui/dta/editing/dt_cellediting.html | |
PopupCalView = Y.Base.create('popupCal',Y.View,[],{ | |
// Setup static properties to hold instances of Overlay and Calendar | |
_overlay: null, |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>DT Destroy</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
</head> | |
<body class="yui3-skin-sam"> | |
<button id="btnRebuild">Rebuild it!</button> | |
<button id="btnDestroy">Destroy it!</button> |
NewerOlder