Build an argon table container
Arguments
- ...
- 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.
Author
David Granjon, dgranjon@ymail.com
Examples
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) { }
)
}