Build an argon table container
argonTable(
...,
cardWrap = FALSE,
title = NULL,
headTitles,
dark = FALSE,
width = 12
)
Whether to wrap the table in a card. FALSE by default.
Card title if any.
Table header names. Must have the same length as the number of argonTableItem in argonTableItems. Set "" to have an empty title field.
Whether to enable dark mode. FALSE by default.
Table width. 12 by default.
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) { }
)
}