Hi,
I want to Align the Image in right bottom corner in node and also want to title center align in node. Please see attached image,
here is code for image icon,
GO(go.Panel, “Horizontal”,
{
row: 2,
column: 2,
name: “AddIcon”,
alignment: go.Spot.Right,
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
visible: false,
},
GO(go.Picture, {
source: “…/…/images/OrgChartGojs/add.png”,
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
cursor: “pointer”,
click: AddChildIconClick,
alignment: go.Spot.Right,
})
),
GO(go.Panel, "Horizontal",
{
row: 2,
column: 3,
name: "EditIcon",
defaultAlignment: go.Spot.Right,
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
visible: false,
},
GO(go.Picture, {
//margin: new go.Margin(0, 10),
source: "../../images/OrgChartGojs/edit.png",
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
cursor: "pointer",
click: editIconClick,
alignment: go.Spot.Right,
})
),
GO(go.Panel, "Horizontal",
{
row: 2,
column: 4,
name: "DeleteIcon",
defaultAlignment: go.Spot.Right,
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
visible: false
},
GO(go.Picture, {
source: "../../images/OrgChartGojs/delete.png",
width: OrgChartConfig.ActionIconDimension,
height: OrgChartConfig.ActionIconDimension,
cursor: "pointer",
click: deleteIconClick,
alignment: go.Spot.Right,
})
)<img src="http://forum.nwoods.com/forum/uploads/5803/ImageAlignment.png" height="369" width="843" border="0" />