A bootstrap button that allows users to take a screenshot of specified HTML element (usually an image) and send it to the drawer canvas for editing. In addition, you can download it as "png" or "jpg" by opening up the dropdown menu.
toCanvasBtn( dom, canvasID, isID = TRUE, id = "", label = "To Canvas", color_class = "primary" )
a HTML DOM selector, mostly common is to select the element by ID:
e.g. a plot with ID "plot1", to select, use
Other complex selector is supported. First turn
string, the ID of canvas. Unlike
string, ID for this button, optional
label of this button, optional
bootstrap button color class suffix, usually one of 'default', 'primary', 'info', 'success', 'warning', 'danger'
This component will not work unless a drawer canvas has been loaded on current document.
# see example of "canvas", `?canvas`