Skip to content

Instantly share code, notes, and snippets.

{ "annots" : [ { "article" : "http://127.0.0.1:8000/articles/1/",
"comments" : [ { "comment" : "More Like Fable of Contents!",
"url" : "http://127.0.0.1:8000/comments/1/",
"user" : "ml",
"votes" : 10
},
{ "comment" : "What is a table of contents?",
"url" : "http://127.0.0.1:8000/comments/2/",
"user" : "brobot",
"votes" : 4
@mikecleach
mikecleach / gist:1135199
Created August 9, 2011 21:07
YUI3 augmenting datatable plugin to pull schema from received data
function DSJSInData(config) {
}
DSJSInData.NAME = "dsjsInData";
DSJSInData.NS = "schema";
Y.extend(DSJSInData, Y.Plugin.Base, {
Y.namespace('tnsg5').Tile = Y.Base.create("tile", Y.Widget,[], {
initializer: function () {
this.dataSource = this.getDataSourceInstance();
var dsCfg = {
request: "cb={}",
callback: {
//HERE IS WHERE THE FUNCTION IS ADDED
success: this.onSuccessfulLoad