UDColorful.psm1
$IndexJs = Get-ChildItem "$PSScriptRoot\index.*.bundle.js" $AssetId = [UniversalDashboard.Services.AssetService]::Instance.RegisterAsset($IndexJs.FullName) function New-UDColorful { <# .SYNOPSIS Creates a new component .DESCRIPTION Creates a new component .PARAMETER Id The ID of this editor .EXAMPLE New-UDColorful #> param( [Parameter()] [string]$Id = (New-Guid).ToString() ) End { @{ assetId = $AssetId isPlugin = $true type = "udcolorful" id = $Id } } } |