Show-UDModal
Synopsis
The modal component provides a solid foundation for creating dialogs, popovers, lightboxes, or whatever else.
Syntax
Show-UDModal [-FullScreen] [[-Footer] <ScriptBlock>] [[-Header] <ScriptBlock>] [[-Content] <ScriptBlock>] [-Persistent] [-FullWidth] [-FullHeight] [[-MaxWidth] <String>] [[-Style] <Hashtable>] [[-HeaderStyle] <Hashtable>] [[-ContentStyle] <Hashtable>] [[-FooterStyle] <Hashtable>] [-Dividers] [[-PaperStyle] <Hashtable>] [<CommonParameters>]Description
Show a modal.
Parameters
-FullScreen
Displays the modal in full-screen mode.
Required? false
Position? named
Default value False
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Footer
The footer components for the modal.
-Header
The header components for the modal.
-Content
The content of the modal.
-Persistent
Whether the modal can be closed by clicking outside of it.
-FullWidth
Whether the modal is full width.
-FullHeight
-MaxWidth
The max width of the modal.
-Style
The CSS style for the modal.
-HeaderStyle
The CSS style for the header portion of the modal.
-ContentStyle
The CSS style for the content portion of the modal.
-FooterStyle
The CSS style for the footer portion of the modal.
-Dividers
Places a divider between header and footer content
-PaperStyle
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 Modal
A basic modal.
Example 2: Full Screen Modal
A full screen modal.
Example 3: Full Width Modal
A full width modal.
Example 4: Persistent Modal
A persistent modal.
Example 5: Header And Footer Modal
A modal with a header and footer.
Last updated
Was this helpful?