datatables responsive

datatables responsive

hongjaehongjae Posts: 3Questions: 1Answers: 0

Hi I want to use the responsive attribute of datatable
but I'm not sure if I'm missing something and need help applying it
The js file and css file are applied.

ps.Currently using jquey and bootstrap

<table id="gridtest" class="table table-striped table-bordered nowrap " style="width: 100%" >
                $('#gridtest').DataTable({
                    data : ajax.data
                  , responsive: true 
                  , paging: false   
                  , searching: false
                  , info: false    
                  , scrollCollapse: false
                  , language: {
                        emptyTable: " " 
                    }
                  , columns: [
                        { data: 'console_ip'}
                      , { data: 'sub_category'}
                      , { data: 'hostname'}
                      , { data: 'base_os_type'}
                    ]
                });

What am I missing?

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.