how to use jQuery UI themes

how to use jQuery UI themes

MaxiloMaxilo Posts: 2Questions: 0Answers: 0
edited May 2010 in TableTools
hi, I'm a beginner in DataTablse and jquery, my question is how to use DataTables Themes (http://www.datatables.net/examples/basic_init/themes.html) in the server-side (http://www.datatables.net/examples/data_sources/server_side.html)
Please help me

I sorry for my language I'm Polish

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Just combine the two examples:

    [code]
    $(document).ready(function() {
    $('#example').dataTable( {
    "bJQueryUI": true,
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "../examples_support/server_processing.php"
    } );
    } );
    [/code]
    All of the initialisation options are listed here: http://datatables.net/usage/

    Allan
  • MaxiloMaxilo Posts: 2Questions: 0Answers: 0
    Ok thank you, just now one more question, how to change colors poems, because I want them to color on the basis of an attribute that holds the database.
    example database:
    [code]
    free = 'yes' row color green
    free = 'no' row white color
    double = 'yes' row color brown
    double = 'no' row white color
    [/code]
    and so there are several-colored.
    I do not want colored rows that offers DataTables
    Please help me and thanks
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Use fnRowCallback ( http://datatables.net/usage/callbacks#fnRowCallback ) to look at the data in the row and apply a class as needed to style it.

    Allan
This discussion has been closed.