Functions/Public/colgroup.ps1
Function Colgroup { <# .SYNOPSIS Generates colgroup HTML tag. .DESCRIPTION The <colgroup> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row. .PARAMETER Class Allows to specify one (or more) class(es) to assign the html element. More then one class can be assigned by seperating them with a white space. .PARAMETER Id Allows to specify an id to assign the html element. .PARAMETER Style Allows to specify in line CSS style to assign the html element. .EXAMPLE Colgroup { col -span 2 } <colgroup> <col span="2" > </colgroup> .EXAMPLE Colgroup { col -span 3 -Style "Background-color:red" col -Style "Backgroung-color:yellow" } Generates the following code <colgroup> <col span="3" Style="Background-color:red" > <col Style="Backgroung-color:yellow" > </colgroup> .NOTES Current version 3.1 History: 2018.10.30;@ChristopheKumor;Updated to version 3.0 2018.04.08;Stephanevg; Updated to version 1.0 2018.04.01;Stephanevg;Fix disyplay bug. .LINK https://github.com/Stephanevg/PSHTML #> Param( [Parameter( ValueFromPipeline = $true, Mandatory = $false, Position = 0 )] $Content, [Parameter(Position = 1)] [int] $span, [Parameter(Position = 2)] [String]$Class, [Parameter(Position = 3)] [String]$Id, [Parameter(Position = 4)] [String]$Style, [Parameter(Position = 5)] [Hashtable]$Attributes ) Process { $tagname = "colgroup" Set-HtmlTag -TagName $tagname -Parameters $PSBoundParameters -TagType nonVoid } } |