Skip to content

Headspace.js for Shiny

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

JohnCoene/headspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

headspace

Give your apps some headroom. Hide your header until you need it: headroom.js for Shiny.

Installation

# install.packages("remotes")
remotes::install_github("JohnCoene/headspace")

Example

This is a basic example which shows you how to solve a common problem:

library(shiny)
library(headspace)

ui <- navbarPage(
  "headspace",
  tabPanel(
    "Home",
    use_headspace(),
    div(style = "height:200vh;"),
    div(
      style = "height:200vh;",
      h3("Scroll Up")
    )
  )
)

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

shinyApp(ui, server)

About

Headspace.js for Shiny

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published