Skip to content

Instantly share code, notes, and snippets.

@rpkyle
Created July 2, 2020 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpkyle/230086c112da16ea3118a7c04e69717a to your computer and use it in GitHub Desktop.
Save rpkyle/230086c112da16ea3118a7c04e69717a to your computer and use it in GitHub Desktop.
DashCytoscape.jl Demo
using Dash, DashCytoscape, DashHtmlComponents
app = dash();
app.layout = html_div() do
cyto_cytoscape(
id="cytoscape-elements-boolean",
layout=(name="preset",),
style=(width="100%",
height="400px"),
elements=[(
data=(id="one", label="Locked"),
position=(x=75, y=75),
locked=true
),
(
data=(id="two", label="Selected"),
position=(x=75, y=200),
selected=true
),
(
data=(id="three", label="Not Selectable"),
position=(x=200, y=75),
selectable=false
),
(
data=(id="four", label="Not Grabbable"),
position=(x=200, y=200),
grabbable=false
),
(
data=(source="one", target="two"),
),
(
data=(source="two", target="three"),
),
(
data=(source="three", target="four"),
),
(
data=(source="two", target="four"),
)
]
)
end;
run_server(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment