HtmlForgeX

API Reference

Command

New-HtmlXTable

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.DataTablesTable

Creates a DataTables-backed table and applies nested table options.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Authored help example

Example 1: Create a table with paging and export buttons.


New-HtmlXTable -Data $services {
    New-HtmlXTablePaging -PageLength 25
    New-HtmlXTableButtonCopy
    New-HtmlXTableButtonExcel -FileName "services.xlsx"
}
        

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-HtmlXTable [-Content <ScriptBlock>] [-Data <object[]>] [<CommonParameters>]
#

Parameters

Content ScriptBlock optionalposition: 0pipeline: false
Scriptblock that returns table option objects.
Data object[] optionalposition: namedpipeline: false
Optional data source to populate the table from.

Outputs

HtmlForgeX.DataTablesTable