i've wrote something using JsPlump Library.
I got three elements that start using
`display:none;`
and then i use the typical Jquery code for make them appear flagging a checkbox:
input type="checkbox" id="nameCB" name="nameCB" value="on"
$('#nameCB').click(function(){
this.checked?$('#elementID').show(1000):$('#elementID').hide(1000);
My problem is if i set an anchor for one of these elements:
jsPlumb.addEndpoint('elementID', {anchor:"BottomCenter" }, endpointOptions );
the anchor (in the default case is a gray circle) is always visible. I would like to make it visible ONLY when the element it is connected is visible.
Aucun commentaire:
Enregistrer un commentaire