canvasBtn | R Documentation |
A upper level function of drawer::toCanvasBtn. You should only use it under SPS projects. For you own apps, still use the drawer::toCanvasBtn.
canvasBtn(dom, id = "", isID = TRUE, class = "text-center", placement = "top")
dom |
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 |
id |
ID of this button, optional. |
isID |
bool, if the |
class |
string, length 1, other html class add to the button wrapper |
placement |
where should the tiptool place, top, bottom, left, right. |
a button group with several options
canvasBtn("#mydiv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.