-
Notifications
You must be signed in to change notification settings - Fork 0
/
two.ui.row.js
38 lines (36 loc) · 842 Bytes
/
two.ui.row.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
row=function(rowid) {
this.element=tag("div")
}
row.prototype.setcoordinates=function (x,y) {
if (x)
two.css.position.set(this.element,"l",x)
if (y)
two.css.position.set(this.element,"t",y)
}
row.prototype.setsize=function (w,h) {
if (w)
two.css.size.setwidth(this.element,"l",w)
if (h)
two.css.size.setheight(this.element,"t",h)
}
row.prototype.addcolumnwithdata=function (data) {
var x = tag("div")
x.innerHTML=data
this.element.appendChild(x)
}
row.prototype.addcolumn=function(element) {
this.adjust
}
row.prototype.setborder=function(aborder) {
}
row.prototype.setmargin=function(margin) {
}
row.prototype.setpadding=function(padding) {
}
row.prototype.setfont=function(afont) {
}
row.prototype.setbackground=function(abackground) {
}
row.prototype.addto(element) {
element.appendChild(this.element)
}