src/Console/Components/New-MenuActivator.ps1
|
<#
.SYNOPSIS A component that activates the items of a menu, based on the current document URL. .INPUTS The child content. .OUTPUTS The rendered component. #> function New-UIMenuActivator { [Alias("uiMenuActivator")] [CmdletBinding()] [OutputType([string])] param ( # The child content. [Parameter(Position = 0, ValueFromPipeline, ValueFromPipelineByPropertyName)] [object] $Content ) process { tag menu-activator $Content } } |