I need to execute the MethodStatus to return the string value in the calumn
currently says Method is unrecognized variable
ReferenceError: Can't find variable: MethodStatus
MethodStatus(data){
if(data===0)
return "Disable"
else
return "Active"
},
getMethod() {
this.loading = true
this.datatable1 = $("#table").DataTable({
ajax: {
url:
`users`, dataSrc: "user"
},
columns: [
{ data: "status",
render: function(data){ return MethodStatus(data) }
},