using my own style

using my own style

t0n1zzt0n1zz Posts: 32Questions: 19Answers: 0

can i remove all built in styling and adding my own styling into all of component for datatables? especially for button and search box....?

Answers

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin

    Sure. just don't include the DataTables CSS files and use whatever custom CSS you want to style the table.

    Allan

  • t0n1zzt0n1zz Posts: 32Questions: 19Answers: 0

    no, what i mean is not the css part but the part where i want search bar to be on my own div that located in top and full sized and align to right... or the part where i want my button from buttons extension to be placed bellow my search bar in its own div... and other component in datatables that automatically drawn by javascript

  • F12MagicF12Magic Posts: 109Questions: 0Answers: 28

    Then you'll need to take a look at DOM Positioning

  • t0n1zzt0n1zz Posts: 32Questions: 19Answers: 0
    edited July 2016

    yes i already read that and can put my searchbox into separated div... how about buttons? i tried on my search but can't work with buttons

    $('#searchtext').keyup(function(){
        table.search($(this).val()).draw() ;
    });
    
  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin

    Use buttons().container() to get the Buttons' container element and then use jQuery to insert it wherever you want into the document.

    Allan

This discussion has been closed.