private createCustomTableTableNode() {
MindFusion.Diagramming.ContainerNode.prototype.onUpdateVisuals = (item: MindFusion.Diagramming.DiagramItem) => {
var rect = item.bounds;
//rect.height = 40;
rect.width = this._conatinerAtt.width
item.setBounds(rect);
item.setFoldable(true);
item.setFoldIconSize(10);
var rectPath = new MindFusion.Drawing.Path();
let tempWidth = this._conatinerAtt.height - 4;
rectPath.addRect(rect.x + 2, rect.y + 2, 4, tempWidth);
rectPath.setPen(this._conatinerAtt.headingColor);
rectPath.setBrush(this._conatinerAtt.headingColor);
item.getGraphicsContent().push(rectPath);
var nodeText = new MindFusion.Drawing.Text(this._conatinerAtt.headingText, new MindFusion.Drawing.Rect(rect.x + 30, rect.y + 2, rect.width / 2, rect.width/2));
nodeText.setFont(new MindFusion.Drawing.Font("sans-serif", 4, false, true, false));
item.getGraphicsContent().push(nodeText);
var image = new MindFusion.Drawing.Image(new Rect(rect.x + 10, rect.y + 5, 15, 15));
image.image.src = this._conatinerAtt.imageUrl;
image.image.width = 10;
image.image.height = 10;
image.loaded = true;
item.getGraphicsContent().push(image);
image = new MindFusion.Drawing.Image(new Rect(rect.x + 20, rect.y + 20, 8, 8));
image.image.src = this._conatinerAtt.incomingLnkImg;
image.image.width = 10;
image.image.height = 10;
image.loaded = true;
item.getGraphicsContent().push(image);
image = new MindFusion.Drawing.Image(new Rect(rect.x + 35, rect.y + 20, 8, 8));
image.image.src = this._conatinerAtt.outgoingLnkImg;
image.image.width = 10;
image.image.height = 10;
image.loaded = true;
item.getGraphicsContent().push(image);
};
}
As you can see in the above code variable
nodeText i am setting a dynamic text using this._conatinerAtt.headingText.
But every time i got the same text.