javascript - Retrieve label HTML from node -


i have node of spacetree graph (from jit library) , i'd modify html of label in click listener. trivial if had reference label object passed parameter onplacelabel() , oncreatelabel() functions, cannot find way reference. there easy way of obtaining reference node object?

i figured out. can the label of node using

st.labels.getlabel(node.id) 

assuming st spacetree object , node node label.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -