@vishal_prabhu81 wrote:
Hi,
I have a textblock in a node and when the user enters a large text I want the text to overflow out of the node rather than expand the node itself.
I have this sample source here
var $ = go.GraphObject.make; diagram = $(go.Diagram, "myDiagramDiv"); diagram.nodeTemplate = $(go.Node, "Auto", $(go.Shape, "Rectangle", { fill: '#AC193D' }, new go.Binding('background', 'isSelected', function (sel) { if (sel) { return '#424949'; } else { return 'transparent'; } }).ofObject('')), $(go.Panel, "Table", { defaultAlignment: go.Spot.Left, margin: 4 }, $(go.RowColumnDefinition, { column: 1, width: 4 }), $(go.TextBlock, { row: 1, column: 0, alignment: go.Spot.Center, margin:(10,10,10,10) }, new go.Binding("text", "prop2")) ) ); diagram.model.nodeDataArray = [ { key: "Alpha", prop1: "value of 'prop1'", prop2: "Test11111112222222222222222123ddddddddddddddddddddd " } ]; };
The first half of the image is what I am getting from the script. I am trying to get a node template which would match the second part of the Image.
thanks
Vishal
Posts: 2
Participants: 2
