Skip to content

Commit

Permalink
876067: Annotation add
Browse files Browse the repository at this point in the history
  • Loading branch information
SumathiSumi committed Jun 19, 2024
1 parent e0e37c5 commit 693679f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion KB-Samples/DragDrop/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
Node node = obj as Node;
node.Height = 50;
node.Width = 150;
node.Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
new ShapeAnnotation()
{
Content=(node.Data as OrgChartDataModel).Role,
}
};
node.Style = new ShapeStyle() { Fill = "#6495ED", StrokeWidth = 1, StrokeColor = "Black" };
node.Constraints = NodeConstraints.Default | NodeConstraints.AllowDrop;
}
Expand Down Expand Up @@ -73,6 +80,6 @@
new OrgChartDataModel() { Id= "3", Role= "Design Manager"},
new OrgChartDataModel() { Id= "4", Role= "Operation Manager" },
new OrgChartDataModel() { Id= "5", Role= "Marketing Manager" },
new OrgChartDataModel() { Id= "6", Role= "Team Member1" },
new OrgChartDataModel() { Id= "6", Role= "Team Member" },
};
}

0 comments on commit 693679f

Please sign in to comment.