Re: [Cytoscape-discuss] Dynamic Menu Action

28 views
Skip to first unread message

Jason Montojo

unread,
May 16, 2013, 3:27:14 PM5/16/13
to cytoscap...@googlegroups.com
Hi Victor,

You've found a bug in our implementation.  That's currently broken.  I've created a support ticket for it here, if you're like to track our progress:


Thanks,
Jason


On Wed, May 15, 2013 at 11:32 AM, Leo <victor...@gmail.com> wrote:
I've managed to successfully build a simple app as detailed in the page below:


I don't have a question on the tutorial, but I have a question related to it. Is it possible to make the "Hide unconnected nodes" menu action more 'dynamic'? 

As in can I set it up such that if I click it once, it changes from "Hide unconnected nodes" to "Show unconnected nodes"?

I've tried it just now using setName & getName but the changes won't update. 

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-disc...@googlegroups.com.
To post to this group, send email to cytoscap...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jason Montojo

unread,
May 16, 2013, 3:35:59 PM5/16/13
to cytoscap...@googlegroups.com
Hi Victor,

As a workaround you can use this within your action:

String currentName = getValue(Action.NAME);
putValue(Action.NAME, newName);

Hope this helps,
Jason
Reply all
Reply to author
Forward
0 new messages