Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLTableOption

Aliases: New-TableOption
Namespace PSWriteHTML
Aliases
New-TableOption

Configures New-HTMLTable options

Remarks

Configures New-HTMLTable options

Examples

Authored help example

EXAMPLE 1


New-HTML {
    New-HTMLTableOption -DateTimeFormat "yyyy-MM-dd HH:mm:ss" -BoolAsString
    New-HTMLSection -Invisible {
        New-HTMLSection -HeaderText 'Standard Table with PSCustomObjects' {
            New-HTMLTable -DataTable $DataTable1
        }
        New-HTMLSection -HeaderText 'Standard Table with PSCustomObjects' {
            New-HTMLTable -DataTable $DataTable1 -DataStore JavaScript
        }
    }
} -ShowHTML
        

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-HTMLTableOption [-ArrayJoin] [-ArrayJoinString <String>] [-BoolAsString] [-Carriage <String>] [-DataStore <HTML|JavaScript|AjaxJSON>] [-DateTimeFormat <String>] [-NewLine <String>] [-NewLineCarriage <String>] [-NumberAsString] [-PrettifyObject] [-PrettifyObjectDateTimeFormat <String>] [-PrettifyObjectSeparator <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ArrayJoin SwitchParameter optionalposition: namedpipeline: False
When JavaScript or AjaxJSON is used, forces any array to be a string regardless of depth level
ArrayJoinString String optionalposition: 5pipeline: False
Uses defined string or char for array join. By default it uses comma with a space when used.
BoolAsString SwitchParameter optionalposition: namedpipeline: False
When JavaScript or AjaxJSON is used, forces bool to string
Carriage String optionalposition: 4pipeline: False
When JavaScript or AjaxJSON is used, one can configure Carriage. Default value for Carriage = "\r"
DataStore String optionalposition: 0pipeline: Falsevalues: 3
Choose how Data is stored for all tables HTML, JavaScript or AjaxJSON (external file)
Possible values: HTML, JavaScript, AjaxJSON
DateTimeFormat String optionalposition: 1pipeline: False
When JavaScript or AjaxJSON is used, one can configure DateTimeFormat (in PowerShell way)
NewLine String optionalposition: 3pipeline: False
When JavaScript or AjaxJSON is used, one can configure NewLine. Default value for NewLine = "\n"
NewLineCarriage String optionalposition: 2pipeline: False
When JavaScript or AjaxJSON is used, one can configure NewLineCarriage. Default NewLineCarriage = '<br>'
NumberAsString SwitchParameter optionalposition: namedpipeline: False
When JavaScript or AjaxJSON is used, forces number to string
PrettifyObject SwitchParameter optionalposition: namedpipeline: False
PrettifyObjectDateTimeFormat String optionalposition: 7pipeline: False
PrettifyObjectSeparator String optionalposition: 6pipeline: False