gui: add header to sidebar
This commit is contained in:
parent
68de68fd25
commit
27752b2270
3 changed files with 15 additions and 5 deletions
lib
|
@ -1,8 +1,11 @@
|
|||
define([], function () {
|
||||
return function () {
|
||||
return function (tag) {
|
||||
if (!tag)
|
||||
tag = "div"
|
||||
|
||||
var self = this
|
||||
|
||||
var container = document.createElement("div")
|
||||
var container = document.createElement(tag)
|
||||
|
||||
self.add = function (d) {
|
||||
d.render(container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue