<html>
<head>
<base target="_top">
<!--INCLUDE REQUIRED EXTERNAL JAVASCRIPT AND CSS LIBRARIES-->
</head>
<body>
<div class="container">
<br>
<div class="row">
<table id="data-table" class="table table-striped table-sm table-hover table-bordered">
</table>
</div>
</div>
</body>
</html>
<script>
google.script.run.withSuccessHandler(showData).getDataTable();
function showData(dataArray){
$(document).ready(function(){
$('#data-table').DataTable({
data: dataArray,
columns: [
{"title":"Date"}, <-- this need to be editable
{"title":"Name"}, <-- this need to be editable
{"title":"Case #"},
{"title":"Account Name"},
{"title":"Country"},
{"title":"Status"},
{"title":"Case Reason"},
{"title":"Date Time Opened"},
{"title":"Last Modified Date"},
{"title":"Booking Status"},
{"title":"Date Breaching"},
{"title":"Remaining Hours Left"},
{"title":"Cases Status"},
{"title":"Status"}, <-- this need to be editable
{"title":"Time In"}, <-- this need to be editable
{"title":"Time Out"} <-- this need to be editable
],
});
});
}
function copyToClipboard(id) {
var from = document.getElementById(id);
var range = document.createRange();
window.getSelection().removeAllRanges();
range.selectNode(from);
window.getSelection().addRange(range);
document.execCommand('copy');
window.getSelection().removeAllRanges();
}
</script>