HtmlForgeX

API Reference

Command

New-HtmlXHeading

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerHeadingBase

Creates a Tabler heading element (H1-H6).

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Authored help example

Example 1: Create a heading with nested content.


New-HtmlXHeading -Level 2 -Text "Overview"
        

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-HtmlXHeading [-Content <ScriptBlock>] [-Level <int>] [-Text <string>] [<CommonParameters>]
#

Parameters

Content ScriptBlock optionalposition: 0pipeline: false
Optional scriptblock to add nested elements inside the heading.
Level int optionalposition: namedpipeline: false
Heading level (1-6). Default is 2.
Text string optionalposition: namedpipeline: false
Heading text.

Outputs

HtmlForgeX.TablerHeadingBase