MediaWiki:Gadget-Synovial-joints-table.js

From WikiMSK

Revision as of 18:18, 1 May 2022 by WikiMSK (talk | contribs) (Created page with "โ†’โ€Ž* * For Synovial Joints datatable * @example <>: (function($,mw){ var table = $('#synovial-joints').DataTable({ searchBuilder:{ }, dom: 'Qfrtip',...")
(diff) โ† Older revision | Latest revision (diff) | Newer revision โ†’ (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (โŒ˜-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (โŒ˜-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * For Synovial Joints datatable
 * @example <>
 */
 
(function($,mw){

    var table = $('#synovial-joints').DataTable({
    	searchBuilder:{

		},
    	dom: 'Qfrtip',
        orderCellsTop: true,
        colReorder: true,
        fixedHeader: true,
        columnDefs:[{
           	type: 'date',
           	targets: [2,8]
        }],
       	columns: [
			{ "title": "Synovial Joint" },
			{ "title": "Joint type" },
			{ "title": "Bones" },
			{ "title": "Ligaments" },
			{ "title": "Muscles" },
			{ "title": "Innervation" },
			{ "title": "Vasculature" },
			{ "title": "ROM" },
			{ "title": "Volume" },
		],
		fnInitComplete: function() {    

		}
    });
}(jQuery, mediaWiki));