Description Usage Arguments Value Examples
TB
- Generates an HTML text box tag.
TB2
- Generates an HTML writable text box tag.
1 2 3 4 5 6 | TB(text = "clipboard", ..., col = "white", border = "black",
padding = 10, lty = "solid", lwd = 1, bor.rad = 5, bold = FALSE,
font.col = "black", copy2clip = interactive(), print = FALSE)
TB2(text = "clipboard", width = nchar(text), text_align = "center",
box_align = "left", copy2clip = interactive(), print = FALSE)
|
text |
A character vector or text copied to the clipboard. Default is to read from the clipboard. |
col |
The color(s) to fill or shade the rectangle with. |
border |
The color for rectangle border(s). |
padding |
The distance (in px) between the text and the border. |
lty |
The line type for borders (either |
lwd |
The line width (in px) for borders and shading. |
bor.rad |
The degree (in px) to which the corners are rounded; 0 results in square corners. |
bold |
logical. If |
font.col |
The color of the font. |
copy2clip |
logical. If |
print |
logical. If |
width |
The width, in characters, to make the box. |
text_align |
Alingment of text in the box; takes the values
c( |
box_align |
Alingment of textbox; takes the values c( |
... |
Other arguments passed to style in the HTML |
Returns a character vector of an HTML text box tag.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.