Cytoscapejs and Polymer

7 views
Skip to first unread message

Mark Fortner

unread,
Aug 23, 2016, 11:44:23 AM8/23/16
to cytoscape-helpdesk
I'm curious if there are any plans to provide Polymer web component elements for Cytoscapejs?  This would make it easier to integrate Cytoscapejs with other web components.  Ideally, I'd like to be able to do something like this:

...
<template>
  <iron-ajax auto url="/mynetwork.js" last-response="{{model}}"></iron-ajax>
  <cytoscape-canvas model="[[model]]" on-load="_highlightNodes"></cytoscape>

</template>
<script>
...


  _highlightNodes: function(){
     var canvas = Polymer.dom(this.root).querySelector("cytoscape-canvas");
["KRAS", "CDKN2A", "TP53"...]
     canvas.highlight();
     canvas
  }



</script>

Scooter Morris

unread,
Aug 25, 2016, 11:28:36 AM8/25/16
to cytoscape-helpdesk
Discussed on cytoscape-app-dev.
Reply all
Reply to author
Forward
0 new messages