GitXplorerGitXplorer
C

nessy

public
105 stars
7 forks
2 issues

Commits

List of commits on branch master.
Verified
eec2be62dbc74ee447fed1ef235901ed1566f89c

Update .gitattributes

CColinFay committed 6 years ago
Verified
70ecfa14dc9dccfcac36869b831796fa2c545f4f

Create .gitattributes

CColinFay committed 6 years ago
Verified
95d4f955fa7f92221a8d765c5644e42d2f2f9ffd

Merge pull request #3 from rpodcast/update-css

CColinFay committed 6 years ago
Unverified
f07f141979bcc04234801027ddf26ccba3cb2feb

add myself to authors section

rrpodcast committed 6 years ago
Unverified
daf748f8f93a9601f1f9ba90a2eb9836a55abd8d

update news

rrpodcast committed 6 years ago
Unverified
80624254c5b891a64a9d7e5d813d4a3bf03319a4

bump version

rrpodcast committed 6 years ago

README

The README file for this repository.

nessy

A NES css for Shiny.

Note: I did not code the CSS, but brought an existing one to Shiny. Give the original css a star if you like it!

Install

#install.packages("remotes")
remotes::install_github("ColinFay/nessy")

Init

Starting point

Every new page is launched by the cartridge() function. It’s more or less equivalent to shiny::fluidPage(), but with NES CSS loaded.

library(nessy)

ui <- cartridge(
  title = "{nessy}",
  subtitle = "NES-style CSS Framework for Shiny.",
  footer = "{nessy}, based on NES.css"
)

server <- function(input, output, session) {
  
}

shiny::shinyApp(ui, server)
  

New container

You can simply pass along a tagList() of objects. The framed areas are launched by the container, container_simple and container_with_title functions.

library(nessy)

ui <- cartridge(
  title = "{nessy}",
  container_with_title(
      "a container", 
      octocat_animate()
  )
)

server <- function(input, output, session) {
  
}

shiny::shinyApp(ui, server)
  

UI Elements

There are five different buttons & a radio_buttons():

ui <- cartridge(
  title = "{nessy}",
  container_with_title(
    title = "Buttons",
    button("Normal", "Normal"),
    button_primary("Primary", "Primary"),
    button_success("Success", "Success"),
    button_warning("Warning", "Warning"),
    button_error("Error", "Error"),
    radio_buttons("sure", "Are you sure?", c("yes", "no"))
  )
)

server <- function(input, output, session) {
  
}

shiny::shinyApp(ui, server)

You can also find:

  • Balloons
  • Checkbox
  • Text Input
  • Various Icons

Example

nessy_examples() returns the path to all available examples.

nessy::nessy_examples()
#> [1] "app2.R"       "app3.R"       "app4.R"       "exampleapp.R"

You can then:

shiny::runApp(nessy_examples("exampleapp.R"))

Please note that the ‘nessy’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.