HtmlForgeX

API Reference

Command

New-HtmlXTableConditionGroup

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.DslOptions.Tables.TableConditionGroupOption

Combines multiple conditions into a logical group.

Remarks

Use inside New-HtmlXTable { }.

Examples

Imported script example

New-HtmlXTableConditionGroup -Logic And {
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-HtmlXTableConditionGroup [-Conditions <ScriptBlock>] [-BackgroundColor <string>] [-Color <string>] [-FailBackgroundColor <string>] [-FailColor <string>] [-HighlightHeaders <string[]>] [-HighlightParent] [-Logic <And|Or>] [-Row] [<CommonParameters>]
#

Parameters

Conditions ScriptBlock optionalposition: 0pipeline: false
Scriptblock that returns TableConditionOption objects.
BackgroundColor string optionalposition: namedpipeline: false
Background color when the group condition matches.
Color string optionalposition: namedpipeline: false
Text color when the group condition matches.
FailBackgroundColor string optionalposition: namedpipeline: false
Background color when the group condition fails.
FailColor string optionalposition: namedpipeline: false
Text color when the group condition fails.
HighlightHeaders string[] optionalposition: namedpipeline: false
Explicit headers to highlight instead of the condition column.
HighlightParent SwitchParameter optionalposition: namedpipeline: false
When highlighting cells, also apply styling to the parent element.
Logic TableConditionLogic optionalposition: namedpipeline: falsevalues: 2
Logical operator applied between conditions. Possible values: And, Or, None
Possible values: And, Or
Row SwitchParameter optionalposition: namedpipeline: false
Apply formatting to the entire row.

Outputs

HtmlForgeX.DslOptions.Tables.TableConditionGroupOption