Created
September 5, 2011 05:07
-
-
Save dalmaer/1194139 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* simple */ | |
document.body.appendChild( | |
Fox.makeTable([ | |
"+---+---+---+", | |
"|A |B |C |", | |
"| +---+---+", | |
"| |D |E |", | |
"| +---+ |", | |
"| |F | |", | |
"+---+---+---+", | |
]) | |
); | |
/* bells and whistles */ | |
document.body.appendChild( | |
Fox.makeTable([ | |
"+-----------+---+", | |
"|a |b |", | |
"|---+-------+---+", | |
"|c |d |", | |
"| | |", | |
"| | |", | |
"| +---+-------+", | |
"| |e |f |", | |
"+---+---+-------+", | |
], { | |
debug:true, | |
map: { | |
a: "Toolbar", | |
b: "Menu", | |
c: "Sidebar", | |
d: "Canvas", | |
e: "Button", | |
f: "Button" | |
}, | |
styles: { | |
table: {'border-collapse':'collapse'}, | |
a: {width: '80%', background: '#ccc'}, | |
b: {width: '20%'}, | |
c: {width: '20%', background: '#777'}, | |
d: {height: '150px', width: '80%'}, | |
e: {width: '20%'}, | |
f: {width: '60%'} | |
} | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment