Specific permission problem

consider the diagram above i want to make the white nodes undeletable but i want to do it on a binding like color or other is it possible to set allow-delete in a node template

i did some thing like this but it didnt work
new go.Binding(“allowDelete”, “foreignKey”,function(v){if(v==true){return false;}else {return true;}}),
for refrence the template is as follows

There is no Part.allowDelete property. But there is a Part.deletable property that you could bind in that manner.

Apparently you are not using the go-debug.js library. If you had, you might have seen the warnings in the console about the non-existent property.

new go.Binding("deletable", "foreignKey", function(v) { return !v; })

thank you very much