This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When i use pagination or sorting then my js code in work. | |
My js code | |
$('.delete').click(function(){ | |
alert('hello'); | |
}); | |
I have using delete class on delete button. | |
And please tell me how to delete full row here my code is not working. | |
https://keenthemes.com/metronic/preview/?page=crud/metronic-datatable/locked/right&demo=default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**** My code ***/ | |
{ | |
"meta": { | |
"page": 1, | |
"pages": 1, | |
"perpage": -1, | |
"total": 2, | |
"sort": "asc", | |
"field": "id" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"page": 1, | |
"pages": 1, | |
"perpage": -1, | |
"total": 2, | |
"sort": "asc", | |
"field": "id" | |
}, | |
"data": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my api url is http://genuinecodes.com/testing/ and using is on right.js but there is not working and console showing error | |
Uncaught TypeError: Cannot read property 'class' of undefined | |
at Object.template (right.js:124) | |
at HTMLTableCellElement.<anonymous> (scripts.bundle.js:1) | |
at Function.each (vendors.bundle.js:1) | |
at _.fn.init.each (vendors.bundle.js:1) | |
at HTMLTableRowElement.<anonymous> (scripts.bundle.js:1) | |
at Function.each (vendors.bundle.js:1) | |
at _.fn.init.each (vendors.bundle.js:1) | |
at Object.setupTemplateCell (scripts.bundle.js:1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
But my link is not working my link is http://localhost/smspanel2/data/. | |
this code is on my url page | |
$json = array( | |
'meta'=>array( | |
'page' => 1, | |
'pages'=> 1, | |
'perpage'=> -1, | |
'total' => count($data), | |
'sort' => 'asc', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DefaultDatatableDemo = { | |
init: function() { | |
$(".m_datatable").mDatatable({ | |
data: { | |
type: "remote", | |
source: { | |
read: { | |
url: "https://keenthemes.com/metronic/preview/inc/api/datatables/demos/default.php" | |
} | |
}, |