card_tool {shidashi} | R Documentation |
Generates small icon widgets
Description
The icons cane be displayed at header line within
accordion
, card
, card2
,
card_tabset
. See their examples.
Usage
card_tool(
inputId = NULL,
title = NULL,
widget = c("maximize", "collapse", "remove", "flip", "refresh", "link", "custom"),
icon,
class = "",
href = "#",
target = "_blank",
start_collapsed = FALSE,
...
)
Arguments
inputId |
the button id, only necessary when |
title |
the tip message to show when the mouse cursor hovers on the icon |
widget |
the icon widget type; choices are |
icon |
icon to use if you are unsatisfied with the default ones |
class |
additional class for the tool icons |
href , target |
used when |
start_collapsed |
used when |
... |
passed to the tag as attributes |
Details
There are 7 widget
types:
"maximize"
allow the elements to maximize themselves to full-screen
"collapse"
allow the elements to collapse
"remove"
"flip"
used together with
flip_box
, to allow card body to flip over"refresh"
refresh all shiny outputs
"link"
open a hyper-link pointing to external websites
"custom"
turn the icon into a
actionButton
. in this case,inputId
must be specified.
Value
'HTML' tags to be included in tools
parameter in
accordion
, card
, card2
,
card_tabset