Home Forums Porto Admin Template No horizontal scroll bars in table

This topic contains 1 reply, has 2 voices, and was last updated by  Support 1 month ago. This post has been viewed 58 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10028634

    dsteel
    Participant

    How may I force a datatable to stay within the width of the current browser window and not display a horizontal scrollbar?

    Thanks

    David


    #10028649

    Support
    Keymaster

    Hello, edit the file examples.datatables.default.js (if you are using advanced tables) and remove the table-responsive class:

    (function($) {
    
    	'use strict';
    
    	var datatableInit = function() {
    
    		$('#datatable-default').dataTable({
    			dom: '<"row"<"col-lg-6"l><"col-lg-6"f>><""t>p'
    		});
    
    	};
    
    	$(function() {
    		datatableInit();
    	});
    
    }).apply(this, [jQuery]);

    Let me know if you need further assistance.

    Kind Regards,

    Jonas


Viewing 2 posts - 1 through 2 (of 2 total)