simple tabs
This commit is contained in:
parent
789f9b7f7c
commit
368ca5e14a
4 changed files with 114 additions and 5 deletions
17
lib/container.js
Normal file
17
lib/container.js
Normal 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
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue