McTable-002 - data
by mormitech
HTML
<script src="https://mormitech.com/mctable/dist/mctable-latest.umd.min.js"></script>
<div class="mct-container">
</div>
CSS
.mct-container {
height: 100%;
}
html,
body {
height: 100%;
padding: 0px;
margin: 0px;
}
JavaScript
new McTable({
columns: [
{
name: "col-01",
type: "text",
title: "Title 01",
},
{
name: "col-02",
type: "number",
title: "Title 02",
},
{
name: "col-03",
type: "date",
title: "Title 03",
},
{
name: "col-04",
type: "boolean",
title: "Title 04",
},
],
records: [
{
"col-01": "Lorem",
"col-02": 10,
"col-03": "2/3/25",
"col-04": true,
},
{
"col-01": "ipsum",
"col-02": 49,
"col-03": "12/30/24",
"col-04": false,
},
{
"col-01": "x",
"col-02": 10,
"col-03": "2025-01-18",
"col-04": true,
},
{
"col-01": "dolor",
"col-02": 3,
"col-03": "08/20/2024",
"col-04": false,
},
{
"col-01": "sit",
"col-02": 29,
"col-03": "3/10/25",
"col-04": true,
},
],
})