KevinMarquette/PSGraph

Tuning record a bit more

Stephanevg opened this issue · 1 comments

Hi @KevinMarquette

This would be a feature request (I guess)

I am using your module to generate records:

For example, this code:


$Properties1 = @("one", "two", "three")
$Properties2 = @("4", "5", "5")

$g = Graph {

    Record -Name Woop {
            
        #Properties
    
        if ($Properties) {
    
            Foreach ($pro in $Properties1) {
               
               
                Row -label "$pro"  -Name "Row_$($pro)"
               
    
            }
            Row "-----Seperator-----"  -Name "Row_Separator"

            Foreach ($pro in $Properties2) {
               
               
                Row -label "$pro"  -Name "Row_$($pro)"
               
    
            }
        }
    }
}

$g | Show-PSGraph

generates this record:

image

Request

Perhaps this is already possible, and I simply don't know of it, but I would love to be able to do the following things:

  1. Get rid of the lines between each row
  2. be able to create a 'real' seperator in the record, to seperate a bit 'nicer' one,two,three from 4,5,6

for 1) Perhaps this could be a new -HideLines / -NoLines / -HideRowLines switch on the record cmdlet (Or something close to that)
for 2) I could imagine that a new cmdlet, RowSeparator could be usefull here, which could be something like this:

RowSeperator -LineType [full,dashed,bullets,etc...] -Bold -Italic -Fill

Please let me know if this would be possible.

Hi @KevinMarquette did you had a chance to have a look at this, or perhaps have some hint(s) on how to implement this?