export_widget: Export a htmlwidget SVG as PNG

Description Usage Arguments

Description

Often we want to export a SVG htmlwidget as a static PNG. This little helper widget will add a button on your widget to perform this export task.

Usage

1
export_widget(selector = NULL, width = 0, height = 0)

Arguments

selector

string a valid CSS selector of the element that we would like to export. If selector is NULL, then export_widget will select all htmlwidgets on the page.


timelyportfolio/exportwidget documentation built on May 31, 2019, 1:49 p.m.