New-UDStyle
Synopsis
Style a component with CSS styles.
Syntax
New-UDStyle [-Id <String>] -Style <String> [-Tag <String>] [-Content <ScriptBlock>] [<CommonParameters>]
New-UDStyle [-Id <String>] -Sx <Hashtable> [-Component <String>] [-Tag <String>] [-Content <ScriptBlock>] [<CommonParameters>]Description
Style a component with CSS styles.
Parameters
-Id
The ID of this component.
Required? false
Position? named
Default value ([Guid]::NewGuid())
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Style
The CSS style to apply
-Sx
A hashtable of theme-aware CSS properties.
-Component
The root component to apply the Sx component to.
-Tag
The outer HTML tag to use.
-Content
The content of this style.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Style
Apply a CSS style to a component.
[Component("Style", "Css3", "Creates a new card.")]
Last updated
Was this helpful?