Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

seperatorDashArray for table row is not working

$
0
0

@jayanandan wrote:

I am trying to achieve the dashed line between rows of the table panel. But i'm unable to get it as expected by using the given properties of the RowColumnDefinition. Please help me to see if i'm doing anything wrong. My code is as below

var $ = go.GraphObject.make;
var myDiagram = $(go.Diagram,"myDiagramDiv");
myDiagram.initialContentAlignment=go.Spot.Center;
myDiagram.add(
$(go.Part,"Table",{defaultRowSeparatorDashArray:[5,10],defaultColumnSeparatorDashArray:[5,10]},
$(go.RowColumnDefinition,
{ row:1, separatorDashArray: [5,10], separatorStroke: "black" }),
$(go.TextBlock,"Row,Column 0,0",{row:0,column:0,margin:2,background:"lightgrey"}),
$(go.TextBlock,"Row,Column 0,1",{row:0,column:1,margin:2,background:"lightgrey"}),
$(go.TextBlock,"Row,Column 1,0",{row:1,column:0,margin:2,background:"lightgrey"}),
$(go.TextBlock,"Row,Column 1,1",{row:1,column:1,margin:2,background:"lightgrey"})
)
);

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles