question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

combining hover and expanded rows

See original GitHub issue

“hover” attribute turns on bootstrap hovering also on expanded rows which doesnt look nice.

ive solved it with

<BootstrapTable
    hover = false;
    classes = "mytable-hover";
    rowClasses = "mytable-hover-row";

Which wont add “mytable-hover-row” on expanded rows (consciously?)

Then in css

.mytable-hover > tbody > tr.mytable-hover-row:hover {
    background-color: rgba(0,0,0,.075);
}

Now its OK, but i dont know if this will be working in future versions…

Any idea how could it be solved for future?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jendamoznacommented, Aug 26, 2019

expandRow = {className: “no-hover”} now creates: <tr><td class="reset-expansion-style no-hover" colspan="5">... could it be possible to update <tr> class instead of <td>?

0reactions
syedganisbcommented, Feb 17, 2020

i resolved this issue i have added below logic it willl working fine render() { parentThisObject = this; var icon = document.querySelectorAll(‘.expand-cell’) for(var i=0;i<icon.length;i++){ if(icon[i].textContent==“(+)”){ icon[i].style.cursor=‘pointer’ } } }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hover over a row and affect the same "n" row of other tables
Update 1: I have been to fast. The idea only would work if you hover a div-table-row in the first div-table and highlight...
Read more >
Expandable Sections Within a CSS Grid
I love how, with just a few lines of code, we can achieve fully ... In this article, I'll combine three one-line CSS...
Read more >
Table row, Thumbnails expand on hover - CodePen
1. <div class="table-container"> ; 2. <h1>Browse campaigns</h1> ; 3. <div class="campaign-filters cf"> ; 4. <div class="left">Hover any campaign to view more info.
Read more >
Handling Hover, Focus, and Other States - Tailwind CSS
Using utilities to style elements on hover, focus, and more. Every utility class in Tailwind can be applied conditionally by adding a modifier...
Read more >
How to Create an Expanding Hover Effect for Your Grid ...
You can also choose to expand the grid to the left or right. Simply organize your modules and then update your row's custom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found