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 |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
(function($,mw){ | (function($,mw){ | ||
if($('# | if($('#articles-table-data').length > 0){ | ||
var table = $('# | 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));