simple tabs

This commit is contained in:
Nils Schneider 2015-03-26 00:33:11 +01:00
commit 368ca5e14a
4 changed files with 114 additions and 5 deletions

17
lib/container.js Normal file
View file

@ -0,0 +1,17 @@
define([], function () {
return function () {
var self = this
var container = document.createElement("div")
self.add = function (d) {
d.render(container)
}
self.render = function (el) {
el.appendChild(container)
}
return self
}
})