3 <?xml-stylesheet href=
"chrome://global/skin/global.css"
5 <?xml-stylesheet href=
"374719-1-css.css"
8 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
14 var r = document.getElementById('rbox');
17 "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
19 var item = document.createElementNS(XULNS,
"gridlikeitem");
20 item.setAttribute(
"value",
"aValue");
22 var cell1 = document.createElementNS(XULNS,
"gridlikecell");
23 var label1 = document.createElementNS(XULNS,
"label");
24 label1.setAttribute(
"value",
"aLabel1");
25 label1.setAttribute(
"flex",
"1");
26 label1.setAttribute(
"crop",
"end");
27 cell1.appendChild(label1);
28 item.appendChild(cell1);
30 var cell2 = document.createElementNS(XULNS,
"gridlikecell");
31 var label2 = document.createElementNS(XULNS,
"label");
32 label2.setAttribute(
"value",
"aLabel2");
33 label2.setAttribute(
"flex",
"1");
34 label2.setAttribute(
"crop",
"end");
35 cell2.appendChild(label2);
36 item.appendChild(cell2);
38 var before = document.getElementById(
"inx");
42 r.insertBefore(item, before);
46 <gridlikebox flex=
"1" id=
"rbox">
48 <gridlikecol flex=
"1"/>
49 <gridlikecol flex=
"1"/>
53 <gridlikeheader label=
"Col1"/>
54 <gridlikeheader label=
"Col2"/>
57 <gridlikeitem value=
"hello1">
58 <gridlikecell><label value=
"Hello"/></gridlikecell>
59 <gridlikecell><label value=
"Hello"/></gridlikecell>
61 <gridlikeitem value=
"hello2" id=
"inx">
62 <gridlikecell><label value=
"Hello2"/></gridlikecell>
63 <gridlikecell><label value=
"Hello2.1"/></gridlikecell>
65 <gridlikeitem value=
"hello3">
66 <gridlikecell><label value=
"Hello592"/></gridlikecell>
67 <gridlikecell><label value=
"Hello592.1"/></gridlikecell>
69 <gridlikeitem value=
"hello4">
70 <gridlikecell><label value=
"Hello4"/></gridlikecell>
71 <gridlikecell><label value=
"Hello4--"/></gridlikecell>