No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Data table - different colors for odd/even rows

    Framework
    4
    4
    3136
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      psta2 last edited by

      Is it possible define different colors for odd/even rows in data table? Something like “striped” in q-list?

      1 Reply Last reply Reply Quote 0
      • Shone
        Shone last edited by

        You can do that with css only.

        tr:nth-child(even) {
          background-color: #3498db14;
        }
        
        1 Reply Last reply Reply Quote 0
        • M
          muzammil_76 last edited by

          it is not working

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @muzammil_76 last edited by

            @muzammil_76

            tr:nth-child(even) {
              background-color: #3498db14 !important;
            }
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post