Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Last active December 19, 2015 23:49
Show Gist options
  • Save melvincarvalho/6037600 to your computer and use it in GitHub Desktop.
Save melvincarvalho/6037600 to your computer and use it in GitHub Desktop.
Creating a Tabulator Pane
tabulator.panes.register( {
icon: tabulator.Icon.src.icon_mbpost,//This icon should be defined in icons.js
label: function(subject) { //'subject' is the source of the document
if (true) {
return "MicroblogPost"; //The icon text
} else {
return null;
}
},
render: function(subject, document) {
var newDiv = document.createElement("h2");
var newContent = document.createTextNode("Microblog will appear here!");
newDiv.appendChild(newContent);
return newDiv;
}
} , true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment