When I use 2 way binding for this text block it doesnt show the whole text only the first word shows up. Text Shows: Exclusive Expected: Exclusive gateway
When I pass the data from
public diagramNodeData: any = [
{ id: "1", key: "1", category: CanvasEntitiesCategory.EXCLUSIVE, name: "Exclusive gateway" }
]
Here’s what I get with your node template and your model data (although I had to remove your category, because I have no idea what that is):
Isn’t this what you want?
However, I advise you not to set both the height and the maxSize.height in case the actual font used on the user’s device happens to be bigger than expected. If it is too short to actually show both lines of text the bottom one might be wrapped, causing it not to be shown due to the maxLines being 2. Which is my guess for the behavior that you are seeing.