argonTable | R Documentation |
Build an argon table container
argonTable(
...,
cardWrap = FALSE,
title = NULL,
headTitles,
dark = FALSE,
width = 12
)
... |
argonTableItems. |
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, dgranjon@ymail.com
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 = "images/undraw_profile-pic_fatv.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) { }
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.