"use strict";var KTDatatableRemoteAjaxDemo=function(){var demo=function(){var datatable=$('#kt_datatable').KTDatatable({data:{type:'remote',source:{read:{url:`/${Login.Urls.baseUrl}/Account/LoadCategoryData`,params:{query:{},},method:'GET'},},pageSize:20,serverPaging:false,serverFiltering:false,serverSorting:false,},layout:{scroll:true,footer:false,},sortable:true,pagination:true,search:{input:$('#kt_datatable_search_query'),key:'generalSearch'},rows:[{autoHide:false}],columns:[{field:'id',title:'#',sortable:'asc',width:30,type:'number',selector:false,textAlign:'center',},{field:'name',title:'Sản phẩm',width:350,},{field:'description',title:'Chi tiết sản phẩm',width:350,},{field:'stock',title:'Hiện có',width:70,},{field:'price',title:'Giá',width:70,}],});$('#kt_datatable_search_status').on('change',function(){datatable.search($(this).val().toLowerCase(),'Status');});$('#kt_datatable_search_type').on('change',function(){datatable.search($(this).val().toLowerCase(),'Type');});$('#kt_datatable_search_status, #kt_datatable_search_type').selectpicker();};return{init:function(){demo();},};}();jQuery(document).ready(function(){KTDatatableRemoteAjaxDemo.init();});