tabulator fixes
This commit is contained in:
@@ -84,6 +84,7 @@
|
|||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/luxon@2.3.1/build/global/luxon.min.js"></script>
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/luxon@2.3.1/build/global/luxon.min.js"></script>
|
||||||
<script src="{{ url('public/libs/tabulator-master/dist/js/autotable.min.js') }}"></script>
|
<script src="{{ url('public/libs/tabulator-master/dist/js/autotable.min.js') }}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
console.log(base_url);
|
||||||
function statusDesign (cell, formatterParams){
|
function statusDesign (cell, formatterParams){
|
||||||
var value = cell.getValue();
|
var value = cell.getValue();
|
||||||
// if(value === 'Approved'){
|
// if(value === 'Approved'){
|
||||||
@@ -102,6 +103,12 @@
|
|||||||
}
|
}
|
||||||
var table = new Tabulator("#message-table", {
|
var table = new Tabulator("#message-table", {
|
||||||
ajaxURL: base_url + "/client-traffic-tabulator/",
|
ajaxURL: base_url + "/client-traffic-tabulator/",
|
||||||
|
ajaxConfig: {
|
||||||
|
method: "GET",
|
||||||
|
headers: {
|
||||||
|
"Content-type": "application/json; charset=utf-8",
|
||||||
|
},
|
||||||
|
},
|
||||||
ajaxParams: {size: 1000},
|
ajaxParams: {size: 1000},
|
||||||
pagination: "remote",
|
pagination: "remote",
|
||||||
paginationSize: 20,
|
paginationSize: 20,
|
||||||
|
|||||||
Reference in New Issue
Block a user