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

    How custom the hovered row on a Qtable?

    Framework
    2
    4
    173
    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.
    • C
      codethirsty last edited by

      I have a qtable and i want to be able to change the color of the text and some buttons of a row if the mouse is over that row. Please help me out!

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

        @codethirsty

        Here’s a codepen demo for the text color:
        https://codepen.io/ontwikkelfabriek/pen/dypPpob

        Here’s a codepen demo for the button:
        https://codepen.io/ontwikkelfabriek/pen/wvzBzGd

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

          @dobbel thanks, thats the key to control the hovered row. I was able to make independents changes on the css to the hovered row afterwards

          .choosen tbody tr:hover {
                  font-weight: bold;
                  color: black !important;
              }
              .choosen tbody tr:hover .info {
                  color: #31CCEC;
                  font-weight: normal;
          
              }
              .choosen tbody tr:hover .pencil {
                  color: #F2C037;
                  font-weight: normal;
              }
              .choosen tbody tr:hover .trash_can {
                  color: #C10015;
                  font-weight: normal;
              }
              .choosen tbody tr .q-chip {
                  background: gray ;
                  font-weight: normal;
              }
              .choosen tbody tr:hover .q-chip.bg-positive {
                  opacity: 1 !important;
                  font-weight: normal;
              }
              .choosen tbody tr:hover .q-chip.bg-negative {
                  opacity: 1 !important;
                  font-weight: normal;
              }
              .crear:hover {
          
                  transform: scale(1.3);
              }
              .exportar:hover {
          
                  transform: scale(1.3);
              }
              .choosen tbody tr .q-btn:hover {
                  transform: scale(1.5);
              }
          
          1 Reply Last reply Reply Quote 0
          • C
            codethirsty last edited by

            I hope those examples above helps others too. @dobbel Thanks again!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post