API Reference
Command
New-HtmlXTable
Creates a DataTables-backed table and applies nested table options.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
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
- Scriptblock that returns table option objects.
- Data object[]
- Optional data source to populate the table from.
Outputs
HtmlForgeX.DataTablesTable