diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 090f941..215d24c 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -544,17 +544,23 @@ function Build-Checkboxes { Where-Object Column -EQ $Column | ForEach-Object { $taskId = $_.Id - $html = "" + + # if the task has a Tooltip property, build a title attribute + $titleAttr = if ($_.PSObject.Properties.Name -contains 'Tooltip' -and $_.Tooltip) { + " title='$($_.Tooltip)'" + } else { + '' + } + + # inject the title attribute into the " if ($_.SubOptions) { - - $subHtml = ( - $_.SubOptions | ForEach-Object { - "" - } - ) -join "`n" + $subHtml = $_.SubOptions | ForEach-Object { + "" + } -join "`n" $html += @"