MediaWiki:Articles-table.js: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
(function($,mw){ | (function($,mw){ | ||
if($('#articles-data').length > 0){ | if($('#articles-table-data').length > 0){ | ||
var table = $('#articles-data').DataTable({ | var table = $('#articles-table-data').DataTable({ | ||
searchBuilder:{ | searchBuilder:{ | ||
Latest revision as of 22:04, 7 May 2022
/**
* For models data tables
* @example <>
*/
(function($,mw){
if($('#articles-table-data').length > 0){
var table = $('#articles-table-data').DataTable({
searchBuilder:{
},
dom: 'Qfrtip',
orderCellsTop: true,
colReorder: true,
fixedHeader: true,
columnDefs:[{
}],
columns: [
{ "title": "Article" },
{ "title": "Quality" },
{ "title": "Authors" },
{ "title": "Last modified" }
],
fnInitComplete: function() {
}
});
}
}(jQuery, mediaWiki));