render_XGMML_download <- function(id, edges) {
insertUI(
"#downloadgraph",
where = "afterEnd",
ui = downloadButton(
id,
label = "Download network as XGMML",
class = "ag-download-button"
)
)
XGMML_download_handler(edges)
}
render_HTML_download <- function(id, node_positions) {
insertUI(
"#downloadgraph",
where = "afterEnd",
ui = downloadButton(
id,
label = "Download network as HTML",
class = "ag-download-button"
)
)
HTML_download_handler(node_positions)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.