- Notifications
You must be signed in to change notification settings - Fork28
rstudio/miniUI
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Provides UI widget and layout functions for writing Shiny apps that work well on small screens. Designed to work especially well for creating Shiny Gadgets.
Inspired by the lovelyRatchet CSS framework, though currently miniUI doesn't use any of Ratchet's CSS code.
devtools::install_github("rstudio/miniUI")
Check out theDesigning Gadget UI article onshiny.posit.co.
ui<- miniPage( gadgetTitleBar("Shiny gadget example"), miniTabstripPanel( miniTabPanel("Parameters",icon= icon("sliders"), miniContentPanel( sliderInput("year","Year",1978,2010, c(2000,2010),sep="") ) ), miniTabPanel("Visualize",icon= icon("area-chart"), miniContentPanel( plotOutput("cars",height="100%") ) ), miniTabPanel("Map",icon= icon("map-o"), miniContentPanel(padding=0, leafletOutput("map",height="100%") ), miniButtonBlock( actionButton("resetMap","Reset") ) ), miniTabPanel("Data",icon= icon("table"), miniContentPanel(DT::dataTableOutput("table") ) ) ))
Full source at:https://github.com/rstudio/miniUI/blob/master/examples/tabs.R
The miniUI package is licensed under theGPLv3.
CompilingLess source to CSS
You generally don't need to do this. This build step is only needed if you want to contribute to the development of the package by modifying the built-in CSS styles.
Prerequisite: You must have Node.js installed.
# Install the grunt command if necessarywhich grunt|| sudo npm install -g grunt-cli# Install dependenciescd toolsnpm install
cd toolsgruntAbout
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
