Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (47 sloc) 0.981 kB
<style>
table.simple-table {
border: solid #777;
border-width: 0px 0px 1px 1px;
margin-top: 8px;
}
table.simple-table thead {
background: #777;
border-bottom: 1px solid #333;
color: #fff;
}
table.simple-table tfoot {
background: #ccc;
border-top: 1px solid #333;
color: #777;
}
table.simple-table td, table.simple-table th {
padding: 4px;
border-right: 1px solid #777;
border-top: 1px solid #777;
}
</style>
<p>
You should see a simple html table below.
<table id="table-id"></table>
</p>
<!-- no html -->
<script src="/depender/build?require=More/HtmlTable"></script>
<script>
var t = new HtmlTable('table-id', {
properties: {
border: 1, cellspacing: 2, cellpadding: 3,
'class':'simple-table'
},
headers: ['fruit', 'colors'],
footers: ['fruit', 'colors']
});
t.inject($('mt-content'));
t.push(['apple', 'red']);
t.push(['lemon', 'yellow']);
t.push([{
content: 'grapes',
properties: {rowspan: 2, valign: 'top'}
},
'purple']);
t.push(['green']);
</script>
Jump to Line
Something went wrong with that request. Please try again.