API Reference
New-HTMLWinBox
Creates a customizable HTML window box with various options for styling and functionality.
Remarks
This function allows you to create an HTML window box with customizable features such as title, background color, initial position, size, URL content, modal display, theme, and more.
Examples
EXAMPLE 1
$Data = Get-Process | Select-Object -First 3
New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\Example-WinBox01.html" { New-HTMLWinBox -Title 'This is a test Window' -BackgroundColor Red { New-HTMLText -Text 'This is a text within modal dialog' New-HTMLTable -DataTable $Data } -Width 50% -Height 50% -X center -Y center } -Online -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-HTMLWinBox [-BackgroundColor <String>] [-Border <String>] [-Bottom <String>] [-Height <String>] [-HTML <ScriptBlock>] [-Index <Nullable`1>] [-Left <String>] [-Maximize] [-Modal] [-NoAnimation] [-NoCloseIcon] [-NoFullScreenIcon] [-NoHeader] [-NoMaximizeIcon] [-NoMinmizeIcon] [-NoMoveCapability] [-NoResizeCapability] [-NoShadow] [-Right <String>] [-Theme <modern|white>] [-Title <String>] [-Top <String>] [-Url <Uri>] [-Width <String>] [-X <String>] [-Y <String>] [<CommonParameters>]
#
All Parameter SetsParameters
- BackgroundColor String
- Specifies the background color of the window box title.
- Border String
- Set the border width of the window (supports all css units, like px, %, em, rem, vh, vmax).
- Bottom String
- Set or limit the viewport of the window's available area (supports units "px" and "%").
- Height String
- Set the initial width/height of the window (supports units "px" and "%").
- HTML ScriptBlock
- Specifies the HTML content to be displayed within the window box.
- Index Nullable`1
- Set the initial z-index of the window to this value (could be increased automatically when unfocused/focused).
- Left String
- Set or limit the viewport of the window's available area (supports units "px" and "%").
- Maximize SwitchParameter
- Automatically maximizes the window box when created.
- Modal SwitchParameter
- Indicates whether the window box should be displayed as a modal window.
- NoAnimation SwitchParameter
- Disables transition animations for the window box.
- NoCloseIcon SwitchParameter
- Hides the close icon in the window box.
- NoFullScreenIcon SwitchParameter
- Hides the fullscreen icon in the window box.
- NoHeader SwitchParameter
- Hides the header of the window box, including the title and toolbar.
- NoMaximizeIcon SwitchParameter
- Hides the maximize icon in the window box.
- NoMinmizeIcon SwitchParameter
- Hides the minimize icon in the window box.
- NoMoveCapability SwitchParameter
- Disables the moving capability of the window box.
- NoResizeCapability SwitchParameter
- Disables the resizing capability of the window box.
- NoShadow SwitchParameter
- Disables the drop shadow effect for the window box.
- Right String
- Set or limit the viewport of the window's available area (supports units "px" and "%").
- Theme String
- Specifies the theme of the window box.
- Possible values:
modern,white - Title String
- Specifies the title of the window box.
- Top String
- Set or limit the viewport of the window's available area (supports units "px" and "%").
- Url Uri
- Specifies the URL content to be loaded inside the window box via iframe.
- Width String
- Set the initial width/height of the window (supports units "px" and "%").
- X String
- Set the initial position of the window (supports: "right" for x-axis, "bottom" for y-axis, "center" for both, units "px" and "%" for both).
- Y String
- Set the initial position of the window (supports: "right" for x-axis, "bottom" for y-axis, "center" for both, units "px" and "%" for both).