New-UDList
Synopsis
Lists are continuous, vertical indexes of text or images.
Syntax
New-UDList [[-Id] <String>] [[-Children] <ScriptBlock>] [[-SubHeader] <String>] [[-ClassName] <String>] [-Dense] [[-Sx] <Hashtable>] [[-AlignItems] <String>] [<CommonParameters>]Description
Creates a list. Use New-UDListItem to add new items to the list. Lists are good for links in UDDrawers.
Parameters
-Id
The ID of the component. It defaults to a random GUID.
Required? false
Position? 1
Default value ([Guid]::NewGuid()).ToString()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Children
The items in the list.
-SubHeader
Text to show within the sub header.
-ClassName
A CSS class to apply to the list.
-Dense
Whether the list is dense.
-Sx
An hashtable of styles to apply to this component.
-AlignItems
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: Basic list
A basic list of items with icons and a subtitle.
Example 2: Dense list
A dense list.
Example 3: OnClick
Respond to clicks on list items.
Example 4: Secondary Action
Respond to secondary actions on list items.
Example 5: Nested List Items
Create nested list items.
Example 6: Switch
Create a list item with a switch.
Example 7: CheckBox
Create a list item with a checkbox.
Example 8: Links
Create a list item with links
Last updated
Was this helpful?