Title: | Argon Shiny Dashboard Template |
---|---|
Description: | Create awesome 'Bootstrap 4' dashboards powered by 'Argon'. |
Authors: | David Granjon [aut, cre], RinteRface [cph], Creative Tim [ctb, cph] (Argon theme for Bootstrap 4) |
Maintainer: | David Granjon <[email protected]> |
License: | GPL-2 |
Version: | 0.3.0.9000 |
Built: | 2024-11-14 06:15:09 UTC |
Source: | https://github.com/rinterface/argondash |
Build an argon avatar
argonAvatar(src, toolTip = NULL, size = c("sm", "md", "lg"))
argonAvatar(src, toolTip = NULL, size = c("sm", "md", "lg"))
src |
Avatar inag path or url. |
toolTip |
Optional tooltip triggered on mouse hover. |
size |
Avatar size: choose one of "sm", "md" or "lg". |
David Granjon, [email protected]
Build an argon avatar container
argonAvatars(...)
argonAvatars(...)
... |
Slot for argonAvatar. |
David Granjon, [email protected]
Build an argon dashboard body
argonDashBody(...)
argonDashBody(...)
... |
Body content, slot for argonTabItems |
David Granjon, [email protected]
A gallery of all components available in argonDash.
argonDashGallery()
argonDashGallery()
if (interactive()) { argonDashGallery() }
if (interactive()) { argonDashGallery() }
Build an argon dashboard header
argonDashHeader( ..., gradient = TRUE, color = NULL, separator = FALSE, separator_color = "secondary", bottom_padding = 4, top_padding = 6, background_img = NULL, mask = FALSE, opacity = 8, height = 600 )
argonDashHeader( ..., gradient = TRUE, color = NULL, separator = FALSE, separator_color = "secondary", bottom_padding = 4, top_padding = 6, background_img = NULL, mask = FALSE, opacity = 8, height = 600 )
... |
Any element |
gradient |
Whether to apply a gradient effect. TRUE by default. |
color |
Header color. See https://demos.creative-tim.com/argon-design-system/docs/foundation/colors.html. |
separator |
Header bottom separator. FALSE by default. |
separator_color |
Separator color. "secondary" by default. See https://demos.creative-tim.com/argon-design-system/docs/foundation/colors.html. |
bottom_padding |
Bottom padding. 4 by default. |
top_padding |
Bottom padding. 6 by default. |
background_img |
Background image url or path. |
mask |
Whether to add an opacity mask on the header. FALSE by default |
opacity |
Mask opacity. Between 0 and 8. Only if mask is TRUE. |
height |
Header height. 600px by default. Only if background image. |
David Granjon, [email protected]
Build an argon dashboard page
argonDashPage( title = NULL, description = NULL, author = NULL, navbar = NULL, sidebar = NULL, header = NULL, body = NULL, footer = NULL )
argonDashPage( title = NULL, description = NULL, author = NULL, navbar = NULL, sidebar = NULL, header = NULL, body = NULL, footer = NULL )
title |
App title. |
description |
Dashboard purpose. |
author |
Dashboard author. |
navbar |
Bootstrap 4 dashboard navbar. |
sidebar |
Bootstrap 4 dashboard main sidebar. |
header |
Bootstrap 4 dashboard header (below the navbar). Useful to hightlight elements or print a message. |
body |
Bootstrap 4 dashboard body wrapper. |
footer |
Bootstrap 4 dashboard footer. |
David Granjon, [email protected]
if(interactive()){ library(shiny) library(argonDash) shiny::shinyApp( ui = argonDashPage(), server = function(input, output) {} ) }
if(interactive()){ library(shiny) library(argonDash) shiny::shinyApp( ui = argonDashPage(), server = function(input, output) {} ) }
Build an argon dashboard sidebar
argonDashSidebar( ..., dropdownMenus = NULL, id, brand_url = NULL, brand_logo = NULL, vertical = TRUE, side = c("left", "right"), size = c("s", "md", "lg"), skin = c("light", "dark"), background = "white" )
argonDashSidebar( ..., dropdownMenus = NULL, id, brand_url = NULL, brand_logo = NULL, vertical = TRUE, side = c("left", "right"), size = c("s", "md", "lg"), skin = c("light", "dark"), background = "white" )
... |
Any element such as argonDashSidebar, argonSidebarMenu, argonSidebarItem, argonSidebarHeader and argonSidebarDivider. |
dropdownMenus |
Slot for dropdown menus. Not displayd on large screens. |
id |
Unique sidebar id. |
brand_url |
Sidebar brand url |
brand_logo |
Sidebar brand logo |
vertical |
Whether to display the sidebar in vertical mode. TRUE by default. |
side |
Sidebar side: "right" or "left". "left" by default. |
size |
Sidebar size: "s", "md", "lg". "md" by default. |
skin |
Sidebar skin. "light" by default. |
background |
Sidebar background color. See https://demos.creative-tim.com/argon-design-system/docs/foundation/colors.html. |
David Granjon, [email protected]
Build an argon dashboard info card
argonInfoCard( value, title = NULL, stat = NULL, stat_icon = NULL, description = NULL, icon, icon_background = "default", hover_lift = FALSE, shadow = FALSE, background_color = NULL, gradient = FALSE, width = 3 )
argonInfoCard( value, title = NULL, stat = NULL, stat_icon = NULL, description = NULL, icon, icon_background = "default", hover_lift = FALSE, shadow = FALSE, background_color = NULL, gradient = FALSE, width = 3 )
value |
info card value. |
title |
info card title. |
stat |
info card stat value. |
stat_icon |
|
description |
info card stat description. |
icon |
|
icon_background |
info card icon background color. |
hover_lift |
Whether to apply a lift effect on hover. FALSE by default. Not compatible with floating. |
shadow |
Whether to apply a shadow effect. FALSE by default. |
background_color |
Card background color. NULL by default. |
gradient |
Whether to apply a gradient effect on the card background. FALSE by default. |
width |
info card width. Between 1 and 12. |
David Granjon, [email protected]
A divider to put inside argonDashSidebar
argonSidebarDivider()
argonSidebarDivider()
A header to put inside argonDashSidebar
argonSidebarHeader(title = NULL)
argonSidebarHeader(title = NULL)
title |
Header title |
Build an argon dashboard main sidebar menu
argonSidebarItem(..., tabName = NULL, icon = NULL)
argonSidebarItem(..., tabName = NULL, icon = NULL)
... |
Item name. |
tabName |
Should correspond exactly to the tabName given in |
icon |
David Granjon, [email protected]
Build an argon dashboard main sidebar menu
argonSidebarMenu(...)
argonSidebarMenu(...)
... |
Slot for argonSidebarItem. |
David Granjon, [email protected]
One tab to put inside a tab items container
argonTabItem(tabName = NULL, ...)
argonTabItem(tabName = NULL, ...)
tabName |
The name of a tab. This must correspond to the |
... |
Contents of the tab. |
A container for tab items
argonTabItems(...)
argonTabItems(...)
... |
Items to put in the container. Each item should be a
|
Build an argon table container
argonTable( ..., cardWrap = FALSE, title = NULL, headTitles, dark = FALSE, width = 12 )
argonTable( ..., cardWrap = FALSE, title = NULL, headTitles, dark = FALSE, width = 12 )
... |
|
cardWrap |
Whether to wrap the table in a card. FALSE by default. |
title |
Card title if any. |
headTitles |
Table header names. Must have the same length as the number of argonTableItem in argonTableItems. Set "" to have an empty title field. |
dark |
Whether to enable dark mode. FALSE by default. |
width |
Table width. 12 by default. |
David Granjon, [email protected]
if (interactive()) { library(shiny) library(argonR) library(argonDash) shinyApp( ui = argonDashPage( navbar = argonDashNavbar(), sidebar = argonDashSidebar(id = "mysidebar"), header = argonDashHeader(), body = argonDashBody( argonTable( headTitles = c( "PROJECT", "BUDGET", "STATUS", "USERS", "COMPLETION", "" ), argonTableItems( argonTableItem("Argon Design System"), argonTableItem(dataCell = TRUE, "$2,500 USD"), argonTableItem( dataCell = TRUE, argonBadge( text = "Pending", status = "danger" ) ), argonTableItem( argonAvatar( size = "sm", src = "https://image.flaticon.com/icons/svg/219/219976.svg" ) ), argonTableItem( dataCell = TRUE, argonProgress(value = 60, status = "danger") ), argonTableItem( argonButton( name = "Click me!", status = "warning", icon = "atom", size = "sm" ) ) ) ) ), footer = argonDashFooter() ), server = function(input, output) { } ) }
if (interactive()) { library(shiny) library(argonR) library(argonDash) shinyApp( ui = argonDashPage( navbar = argonDashNavbar(), sidebar = argonDashSidebar(id = "mysidebar"), header = argonDashHeader(), body = argonDashBody( argonTable( headTitles = c( "PROJECT", "BUDGET", "STATUS", "USERS", "COMPLETION", "" ), argonTableItems( argonTableItem("Argon Design System"), argonTableItem(dataCell = TRUE, "$2,500 USD"), argonTableItem( dataCell = TRUE, argonBadge( text = "Pending", status = "danger" ) ), argonTableItem( argonAvatar( size = "sm", src = "https://image.flaticon.com/icons/svg/219/219976.svg" ) ), argonTableItem( dataCell = TRUE, argonProgress(value = 60, status = "danger") ), argonTableItem( argonButton( name = "Click me!", status = "warning", icon = "atom", size = "sm" ) ) ) ) ), footer = argonDashFooter() ), server = function(input, output) { } ) }
Build an argon table item
argonTableItem(..., dataCell = FALSE)
argonTableItem(..., dataCell = FALSE)
... |
Any HTML element. |
dataCell |
Whether the cell should be contain data or text. <td> by default. |
David Granjon, [email protected]
Build an argon table item row
argonTableItems(...)
argonTableItems(...)
... |
Slot for argonTableItem. |
David Granjon, [email protected]