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
widgetis"custom"- title
the tip message to show when the mouse cursor hovers on the icon
- widget
the icon widget type; choices are
"maximize","collapse","remove","flip","refresh","link", and"custom"; see 'Details'- icon
icon to use if you are unsatisfied with the default ones
- class
additional class for the tool icons
- href, target
used when
widgetis"link", will open an external website; default is open a new tab- start_collapsed
used when
widgetis"collapse", whether the card should start collapsed- ...
passed to the tag as attributes
Value
'HTML' tags to be included in tools parameter in
accordion, card, card2,
card_tabset
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,inputIdmust be specified.