API Reference
Function
New-HTMLTableOption
Configures New-HTMLTable options
Remarks
Configures New-HTMLTable options
Examples
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 SetsParameters
- ArrayJoin SwitchParameter
- When JavaScript or AjaxJSON is used, forces any array to be a string regardless of depth level
- ArrayJoinString String
- Uses defined string or char for array join. By default it uses comma with a space when used.
- BoolAsString SwitchParameter
- When JavaScript or AjaxJSON is used, forces bool to string
- Carriage String
- When JavaScript or AjaxJSON is used, one can configure Carriage. Default value for Carriage = "\r"
- DataStore String
- Choose how Data is stored for all tables HTML, JavaScript or AjaxJSON (external file)
- Possible values:
HTML,JavaScript,AjaxJSON - DateTimeFormat String
- When JavaScript or AjaxJSON is used, one can configure DateTimeFormat (in PowerShell way)
- NewLine String
- When JavaScript or AjaxJSON is used, one can configure NewLine. Default value for NewLine = "\n"
- NewLineCarriage String
- When JavaScript or AjaxJSON is used, one can configure NewLineCarriage. Default NewLineCarriage = '<br>'
- NumberAsString SwitchParameter
- When JavaScript or AjaxJSON is used, forces number to string
- PrettifyObject SwitchParameter
- PrettifyObjectDateTimeFormat String
- PrettifyObjectSeparator String