Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7422

Not able to parse model data back using binding

$
0
0

@anupamsinghbisht wrote:

Hi I have defined binding in node temoplate as :

 new go.Binding("height", "height", function(x) {
   rerturn parseInt(x);
  }).makeTwoWay(),

I am passign height as string eg. { height : "100"}
and want to get height as Number if i access using part.data.height

but while accessing model data I am getiing height as string not as Number.
I have also tried both conversion function as mentioned here : http://gojs.net/latest/api/symbols/Binding.html

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7422

Trending Articles