Description Usage Arguments Author(s) Examples
Build an argon table container
1 2 3 4 5 6 7 8 |
... |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 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) { }
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.