-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for RowHoverSelect in function New-HTMLTableStyle #363
Comments
Why don't you create PR, modifying the source https://github.com/EvotecIT/PSWriteHTML/blob/master/Public/New-HTMLTableStyle.ps1 so we can add it to the original release? |
This appears to effect selected rows (highlighted in blue) only in hover mode. In the demo you appear to only select one row at time and choose hover on an odd row (#7) but if you try to select multiple rows or a block with a click and holding down shift select several rows above then you'll have a block of selected rows to test/hover against. It's interesting as you happen to choose row 7 in the demo above which is odd and is designed verification route and it works for you. Sorry for the miscommunication and hopefully this clarifies the issue. |
I guess I've even weirder behavior. This is in Edge ;) $ProcessesAll = Get-Process | Select-Object -First 10 -Property Name, Id, StartTime
New-HTML -TitleText 'Title' -Online -FilePath $PSScriptRoot\Example-SearchBuilder.html -ShowHTML {
New-HTMLTableStyle -BackgroundColor Blue -Type RowSelected
New-HTMLTableStyle -BackgroundColor Yellow -Type RowHover
New-HTMLTableStyle -BackgroundColor Yellow -Type RowHoverSelected
New-HTMLSection -HeaderText 'Search Builder 1' {
New-HTMLTable -DataTable $ProcessesAll -SearchBuilder -Buttons excelHtml5, copyHtml5, csvHtml5 {
}
}
New-HTMLSection -HeaderText 'Search Builder as button' {
New-HTMLTable -DataTable $ProcessesAll
}
# This won't really work - button + searchBuilder
New-HTMLSection -HeaderText 'Search Builder + button' {
# Search Builder will be disabled, button will work
New-HTMLTable -DataTable $ProcessesAll -SearchBuilder
}
} |
Perhaps the code base has changed as the baseline mentioned was a change to PSWriteHTML.psm1 v.0.0.180 from the package here: https://www.powershellgallery.com/packages/PSWriteHTML/0.0.180 |
I also have this problem, but only when you add for example: New-HTML -TitleText 'Title' -Online -ShowHTML { You'll see that it fails to highlight the even rows, but if you comment out the This is the same in Firefox and Edge. |
There appears to be at bug in PSWriteHTML.psm1- v.0.0.180 -> Function New-HTMLTableStyle as RowHoverSelected will show hover on selected item for odd row numbers only - after line 22918 added:
'table.dataTable.hover tbody tr.even:hover.selected, table.dataTable.display tbody tr.even:hover.selected'
'table.dataTable.hover tbody tr.odd:hover.selected, table.dataTable.display tbody tr.odd:hover.selected'
Verification:
New-HTMLTableStyle -BackgroundColor Blue -Type RowSelected
New-HTMLTableStyle -BackgroundColor Yellow -Type RowHover
New-HTMLTableStyle -BackgroundColor Yellow -Type RowHoverSelected
Hopefully this will help everyone who uses this functionality.
The text was updated successfully, but these errors were encountered: