any one help me? for how to change table color or customize

any one help me? for how to change table color or customize

giashgiash Posts: 29Questions: 4Answers: 0



Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Also I am Include plugins please see screenshot:

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946
    Answer ✓

    for how to change table color or customize

    What exactly are you asking help with? What do you want to customize?

    Kevin

  • giashgiash Posts: 29Questions: 4Answers: 0

    Like this

  • giashgiash Posts: 29Questions: 4Answers: 0

    yes I need to table color change

  • giashgiash Posts: 29Questions: 4Answers: 0

    and please check my dataTable data showing look not good!!

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946
    Answer ✓

    Like this

    Looks like you want to set the row color based on a condition. Use createdRow. See this example.

    please check my dataTable data showing look not good!!

    Please be more specific about what is not looking good. You need to outliine exactly what you want changed.

    Kevin

  • giashgiash Posts: 29Questions: 4Answers: 0

    I need datatable background color change

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946
    Answer ✓

    Read about the Default styling. Maybe you will want to remove the display class from the table then use use something like this to set the background color:

    table {
      background-color: lightblue;
    }
    

    https://live.datatables.net/zehusitu/1/edit

    Kevin

  • giashgiash Posts: 29Questions: 4Answers: 0

    but check my screenshot plugin where i am edit?

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946
    edited March 2023

    Add the CSS to your style section. If you have display on your table tag you might want to remove it if you don't want those styles added as explained in the Default styles doc.

    Kevin

Sign In or Register to comment.