|
<!doctype html> |
|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Tabulator Example</title> |
|
<link href="https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css" rel="stylesheet"> |
|
<script type="text/javascript" src="https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js"></script> |
|
</head> |
|
<body> |
|
<div id="example-table"></div> |
|
|
|
<script type="text/javascript"> |
|
var data = [ |
|
{ "email": "[email protected]", "name": "Елена", "phone": "79290547079" }, |
|
{ "email": "[email protected]", "name": "Ольга", "phone": "79150408998" }, |
|
|
|
]; |
|
|
|
var table = new Tabulator("#example-table", { |
|
height: "311px", |
|
data: data, |
|
columns: [ |
|
{ title: "Name", field: "name", width: 250, frozen: true }, |
|
{ title: "Phone", field: "phone", width: 200 }, |
|
{ title: "Email", field: "email", width: 300 } |
|
], |
|
}); |
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
var table = new Tabulator("#example-table", { |
|
height: "311px", |
|
ajaxURL: "https://your-server-url/data_gc_tab_out?api_sys=fasSd345D", |
|
columns: [ |
|
{ title: "Name", field: "name", width: 250, frozen: true }, |
|
{ title: "Phone", field: "phone", width: 200 }, |
|
{ title: "Email", field: "email", width: 300 } |
|
], |
|
}); |
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
</html> |