MediaWiki:Articles-table.js: Difference between revisions
From WikiMSK
(Created page with "→* * For models data tables * @example <>: (function($,mw){ if($('#reviews-data').length > 0){ var table = $('#reviews-data').DataTable({ searchBuilder:{...") |
No edit summary |
||
Line 5: | Line 5: | ||
(function($,mw){ | (function($,mw){ | ||
if($('# | if($('#articles-data').length > 0){ | ||
var table = $('# | var table = $('#articles-data').DataTable({ | ||
searchBuilder:{ | searchBuilder:{ | ||
Revision as of 05:41, 7 May 2022
/**
* For models data tables
* @example <>
*/
(function($,mw){
if($('#articles-data').length > 0){
var table = $('#articles-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));