AppBar component for Universal Dashboard
The App Bar displays information and actions relating to the current screen.
The top App Bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions.
To create an app bar that is pinned to the bottom of the page, you can use the -Footer
parameter.
New-UDAppBar
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
Drawer
Hashtable
A drawer that can be opened from this AppBar. Use New-UDDrawer to create a drawer to pass to this parameter.
false
Children
ScriptBlock
Children of this AppBar. The children of an AppBar are commonly text and buttons.
false
Position
String
The position of this AppBar. A fixed position will override the default AppBar.
false
Footer
Switch
Creates an app bar pinned to the bottom of the page.
false
Paper component for Universal Dashboard
In Material Design, the physical properties of paper are translated to the screen.
The background of an application resembles the flat, opaque texture of a sheet of paper, and an application’s behavior mimics paper’s ability to be re-sized, shuffled, and bound together in multiple sheets.
By default, paper will have rounded edges. You can reduce the rounding by using a square paper.
The -Style
parameter can be used to color paper. Any valid CSS can be included in the hashtable for a style.
The following example creates paper with a red background.
New-UDPaper
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
Children
ScriptBlock
The content of this paper element.
false
Width
String
The width of this paper.
false
Height
String
The height of this paper.
false
Square
SwitchParameter
Whether this paper is square.
false
Style
Hashtable
The CSS style to apply to this paper.
false
Elevation
Int32
The elevation of this paper.
false
Expansion Panel component for Universal Dashboard
Card component for Universal Dashboard
Cards contain content and actions about a single subject.
Cards are surfaces that display content and actions on a single topic. They should be easy to scan for relevant and actionable information. Elements, like text and images, should be placed on them in a way that clearly indicates hierarchy.
Although cards can support multiple actions, UI controls, and an overflow menu, use restraint and remember that cards are entry points to more complex and detailed information.
You can use the body, header, footer and expand cmdlets to create advanced cards. The below example creates a card with various features based on a Hyper-V VM.
New-UDCard
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
Title
String
The title show within the header of the expansion panel.
false
Icon
FontAwesomeIcons
An icon to show within the header of the expansion panel.
false
Children
ScriptBlock
Children components to put within the expansion panel.
false
Active
SwitchParameter
Whether the expansion panel is currently active (open).
false
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
ClassName
String
A CSS class to assign to this card.
false
ShowToolBar
SwitchParameter
Whether to show the toolbar for this card.
false
ToolBar
Object
The toolbar for this card. Use New-UDCardToolbar to create a toolbar.
false
Header
Object
The header for this card. The header typically contains a title for the card. Use New-UDCardHeader to create a header.
false
Body
Object
The body for this card. This is the main content for the card. Use New-UDCardHeader to create a body.
false
Expand
Object
Th expand content for this card. Expand content is show when the user clicks the expansion button. Use New-UDCardExpand to create an expand.
false
Footer
Object
The footer for this card. Footer contents typically contain actions that are relavent to the card. Use New-UDCardFooter to create a footer.
false
Style
Hashtable
Styles to apply to the card.
false
Elevation
Int32
The amount of elevation to provide the card. The more elevation, the more it will appear the card is floating off the page.
false
Title
String
A title for the card.
false
TitleAlignment
String
The alignment for the title.
false
Content
ScriptBlock
The content of the card.
false
Image
String
An image to show in the card.
false