dataTable.bootstrapTable({ url:'datatable/pelayanan', showColumns: true, showColumnsToggleAll: true, showRefresh: true, sortable: true, search: true, searchOnEnterKey: false, searchHighlight: false, pagination: true, pageSize: 10, pageList: [25, 50, 100, 200], cookie: true, icons: { refresh: "fas fa-sync", columns: "fas fa-th-list", }, columns: [ { title: "Name", field: "name", sortable: true, }, { title: "Tarif", field: "tarif", sortable: true, formatter: function(value, row, index) { if (!value) return '0'; return 'Rp ' + new Intl.NumberFormat('id-ID').format(value); } }, { title: "Action", field: "uid", sortable: true, formatter: (value, row) => { let buttons = ""; buttons += ` ` buttons += ` ` return `