cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2266
Views
0
Helpful
3
Replies

Accessing node data properties from nodetooltip

Deniz AYDIN
Beginner
Beginner

Hi,

I am tring to update selected node's properties like status,latitude and other some node data properties. For example upon on update method "

methods: {
// what happens when you hit 'Save' button
'update': function () {

$.ajax({
type: "POST",
url: "updateNode.php",
data: this.node().latitude,
success: function(return) {
console.log(return);
}
});
}

}

But I can not access the node properties other than label and id. Also is it possible to pass current node's data to the php as json object.

1 Accepted Solution

Accepted Solutions
3 Replies 3

Deniz AYDIN
Beginner
Beginner

Hi I forked,

Standart tooltip for with custome values example to log custom value to console with button.


http://codepen.io/deniza/pen/NpvRvq

It gives an error of undefined object. If set method is removed from node it works fine. I tried several approach but I guess missing something.