metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
57 lines (50 loc) • 1.46 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="../metro/css/metro-all.css?ver=@@b-version" rel="stylesheet">
<title>Test Table load data - Metro 4 :: Popular HTML, CSS and JS library</title>
</head>
<body class="m4-cloak">
<div class="container">
<h1>Table load test page</h1>
<table
id='table' class="table striped table-border mt-4"
data-role="table"
data-cls-table-top="row flex-nowrap"
data-cls-search="cell-md-8"
data-cls-rows-count="cell-md-4"
data-rows="5"
data-rows-steps="5, 10"
data-show-activity="false"
>
<thead>
<tr>
<th data-name="name">Name</th>
<th data-name="attributes">Attributes</th>
<th data-name="size">Size</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<script src="../metro/js/metro.js?ver=@@b-version"></script>
<script>
$(function(){
let tj = {
data: [
[
"x.txt",
"-dxxxr-xx",
"1024"
]
]
}
var table = Metro.getPlugin('#table', 'table');
table.setData(tj);
})
</script>
</body>
</html>