Two questions: left justification and row color alternation

Two questions: left justification and row color alternation

crue4cruecrue4crue Posts: 1Questions: 1Answers: 0

1- How to left justify the column name
2- How to alternate the row colors

Are there settings for these? What are they? Can't find it in the manual

Answers

  • tangerinetangerine Posts: 2,563Questions: 21Answers: 288

    The basic example fulfils both those requirements.
    https://datatables.net/examples/basic_init/zero_configuration.html

    Use that CSS file.

  • JuJoGuAlJuJoGuAl Posts: 32Questions: 2Answers: 0

    If Boostrap is used:

    1- How to left justify the column name
    Don't need anything but if the Columns shows is another aligment use the class: text-left in the thead tag
    2- How to alternate the row colors
    add the class table-striped to the Table tag

Sign In or Register to comment.