Wraps in a width 12 card, converts the title to an ID by replacing spaces with _. Adds a tip_icon if a tip named with the title exists in tips.
Usage
grid_card(
...,
title = NULL,
id = NULL,
class = NULL,
tip_icon = NULL,
width = 12,
maximizable = TRUE,
elevation = 2,
more_info = NULL,
collapsible = FALSE
)Arguments
- ...
Arguments passed on to
bs4Dash::bs4CardfooterOptional footer text.
statusThe status of the item. This determines the item's background color. Valid statuses are defined as follows:
primary: #007bff .secondary: #6c757d .info: #17a2b8 .success: #28a745 .warning: #ffc107 .danger: #dc3545 .gray-dark: #343a40 .gray: #adb5bd .white: #fff .indigo: #6610f2 .lightblue: #3c8dbc .navy: #001f3f .purple: #605ca8 .fuchsia: #f012be .pink: #e83e8c .maroon: #d81b60 .orange: #ff851b .lime: #01ff70 .teal: #39cccc .olive: #3d9970 .
solidHeaderShould the header be shown with a solid color background?
backgroundIf NULL (the default), the background of the box will be white. Otherwise, a color string. Valid colors are listed in validColors. See below:
primary: #007bff .secondary: #6c757d .info: #17a2b8 .success: #28a745 .warning: #ffc107 .danger: #dc3545 .gray-dark: #343a40 .gray: #adb5bd .white: #fff .indigo: #6610f2 .lightblue: #3c8dbc .navy: #001f3f .purple: #605ca8 .fuchsia: #f012be .pink: #e83e8c .maroon: #d81b60 .orange: #ff851b .lime: #01ff70 .teal: #39cccc .olive: #3d9970 .
heightThe height of a box, in pixels or other CSS unit. By default the height scales automatically with the content.
collapsedIf TRUE, start collapsed. This must be used with
collapsible=TRUE.closableIf TRUE, display a button in the upper right that allows the user to close the box.
iconHeader icon. Displayed before title. Expect
icon.gradientWhether to allow gradient effect for the background color. Default to FALSE.
boxToolSizeSize of the toolbox: choose among "xs", "sm", "md", "lg".
headerBorderWhether to display a border between the header and body. TRUE by default
labelSlot for boxLabel.
dropdownMenuList of items in the boxtool dropdown menu. Use boxDropdown.
sidebarSlot for boxSidebar.
- title
Optional title.
- id
Card id.
- class
A class to applied to the top level div
- tip_icon
Tip icon. Tooltip Icon displayed after title. Expect
tippy.- width
The width of the box, using the Bootstrap grid system. This is used for row-based layouts. The overall width of a region is 12, so the default card width of 6 occupies 1/2 of that width. For column-based layouts, use
NULLfor the width; the width is set by the column that contains the box.- maximizable
If TRUE, the card can be displayed in full screen mode.
- elevation
Card elevation.
- collapsible
If TRUE, display a button in the upper right that allows the user to collapse the box.