Last active
December 19, 2015 23:49
-
-
Save melvincarvalho/6037600 to your computer and use it in GitHub Desktop.
Creating a Tabulator Pane
This file contains hidden or 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
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