Skip to content

Commit a6fcb34

Browse files
Update DataTables conditional formatting and introduce column highlighter
- Updated the configuration URL to version 0.0.31. - Added new function `Convert-TableConditionsToHighlighterRules` to convert conditional formatting rules for use with the new column highlighter. - Introduced `New-TablePluginCondition` to map PSWriteHTML conditions to the plugin condition schema. - Enhanced `New-HTMLTable` to support plugin-based conditional formatting, integrating column highlighter rules. - Modified `New-TableCondition` and `New-TableConditionGroup` to include a new parameter for child row fill options. - Added new JavaScript file `dataTables.columnHighlighter.js` for standalone column highlighting functionality. - Removed deprecated `dataTables.conditions.js` file as its functionality is now integrated into the new column highlighter.
1 parent 0eadf6f commit a6fcb34

12 files changed

Lines changed: 500 additions & 651 deletions

Examples/Example-Carousel/Example-Carousel03.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$Data = Get-Process |
77
Select-Object -First 12 Name, Id, CPU
88

9-
New-HTML -Name 'Tabs + Carousel' -FilePath "$PSScriptRoot\Example-Carousel03.html" -Format -Show {
9+
New-HTML -Name 'Tabs + Carousel' -FilePath "$PSScriptRoot\Example-Carousel03.html" -Online -Show {
1010
New-HTMLTab -Name 'Tab 1' -Heading 'First' {
1111
New-HTMLSection -HeaderText 'Visible Tab' -Invisible {
1212
New-HTMLCarousel {

Examples/Example-TableColumnHighlight/Example-SearchBuilder.ps1

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Import-Module .\PSWriteHTML.psd1 -Force
22

3-
$ProcessesAll = Get-Process | Select-Object -First 1 #-Property Name, Id, StartTime
3+
$ProcessesAll = Get-Process | Select-Object -First 3 #-Property Name, Id, StartTime
44

55
New-HTML -TitleText 'Title' -Online -FilePath $PSScriptRoot\Example-SearchBuilder.html -ShowHTML {
66
#New-HTMLTableStyle -BackgroundColor Blue -Type RowSelected
@@ -10,9 +10,18 @@ New-HTML -TitleText 'Title' -Online -FilePath $PSScriptRoot\Example-SearchBuilde
1010
New-HTMLSection -HeaderText 'Search Builder 1' {
1111
New-HTMLTable -DataTable $ProcessesAll -SearchBuilder -Buttons excelHtml5, copyHtml5, csvHtml5 {
1212
#New-HTMLTableContent -ColumnName 'PriorityClass' -BackgroundColor Salmon
13-
#New-HTMLTableContent -ColumnName 'Company' -BackgroundColor Salmon
14-
New-HTMLTableCondition -ColumnName 'Name' -BackgroundColor Salmon -Value '1Password'
13+
New-HTMLTableContent -ColumnName 'HandleCount' -BackGroundColor Salmon
14+
New-HTMLTableCondition -ColumnName 'Product' -BackgroundColor Salmon -Value '1Password' -ChildRowFill Both
15+
New-HTMLTableCondition -ColumnName 'Name' -BackgroundColor AirForceBlue -Value '1password'
1516
}
17+
New-HTMLTable -DataTable $ProcessesAll -SearchBuilder -Buttons excelHtml5, copyHtml5, csvHtml5 {
18+
#New-HTMLTableContent -ColumnName 'PriorityClass' -BackgroundColor Salmon
19+
New-HTMLTableContent -ColumnName 'HandleCount' -BackGroundColor Salmon
20+
New-HTMLTableCondition -ColumnName 'Product' -BackgroundColor Salmon -Value '1Password'
21+
New-HTMLTableCondition -ColumnName 'Name' -BackgroundColor AirForceBlue -Value '1password'
22+
23+
New-HTMLTableCondition -ColumnName 'VM' -BackgroundColor Alizarin
24+
} -DataStore JavaScript
1625
}
1726
# New-HTMLSection -HeaderText 'Search Builder as button' {
1827
# New-HTMLTable -DataTable $ProcessesAll

Examples/Example-TableColumnHighlight/README-ColumnHighlighter.md

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)