HtmlForgeX

API Reference

Command

New-HtmlXSmartTab

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.SmartTab

Creates a SmartTab container for advanced tabbed layouts.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Authored help example

Example 1: Create a SmartTab with two panels.


New-HtmlXSmartTab -Theme Default -SelectedTab 0 {
    New-HtmlXSmartTabPanel -Label "Overview" {
        New-HtmlXText -Text "Summary"
    }
    New-HtmlXSmartTabPanel -Label "Details"
}
        

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-HtmlXSmartTab [-Content <ScriptBlock>] [-AutoAdjustHeight <bool>] [-BackButtonSupport <bool>] [-CardHeaderLook] [-Justified <bool>] [-KeyboardNavigation <bool>] [-NavAtBottom] [-NavStyle <Default|Tabs|Underline|Bordered>] [-PersistSelected] [-ReportMode] [-SelectedTab <int>] [-Theme <Basic>] [-UrlHash <bool>] [-Vertical] [-VerticalRight] [<CommonParameters>]
#

Parameters

Content ScriptBlock optionalposition: 0pipeline: false
Scriptblock that emits tab panels.
AutoAdjustHeight bool optionalposition: namedpipeline: false
Controls auto-height adjustment.
BackButtonSupport bool optionalposition: namedpipeline: false
Controls browser back button support.
CardHeaderLook SwitchParameter optionalposition: namedpipeline: false
Applies a card-header look to the navigation area.
Justified bool optionalposition: namedpipeline: false
Controls whether tabs are justified (equal width).
KeyboardNavigation bool optionalposition: namedpipeline: false
Enables keyboard navigation.
NavAtBottom SwitchParameter optionalposition: namedpipeline: false
Moves navigation tabs below the content.
NavStyle SmartTabNavStyle optionalposition: namedpipeline: falsevalues: 4
Navigation style for the SmartTab. Possible values: Default, Tabs, Underline, Bordered
Possible values: Default, Tabs, Underline, Bordered
PersistSelected SwitchParameter optionalposition: namedpipeline: false
Persists selected tab in local storage.
ReportMode SwitchParameter optionalposition: namedpipeline: false
Applies report-friendly defaults (disables URL hash, back button, keyboard nav, and auto height).
SelectedTab int optionalposition: namedpipeline: false
Sets the initially selected tab index.
Theme SmartTabTheme optionalposition: namedpipeline: falsevalues: 12
Applies a built-in SmartTab theme. Possible values: Basic, Classic, Dark, Bootstrap, Square, Round, Material, Elite, Pills, Brick, Forge, Blocks
Possible values: Basic, Classic, Dark, Bootstrap, Square, Round, Material, Elite, Pills, Brick, Forge, Blocks
UrlHash bool optionalposition: namedpipeline: false
Controls URL hash synchronization.
Vertical SwitchParameter optionalposition: namedpipeline: false
Enables vertical tab layout.
VerticalRight SwitchParameter optionalposition: namedpipeline: false
Places vertical navigation on the right side.

Outputs

HtmlForgeX.SmartTab