shinypanel v0.1.2

0

Monthly downloads

0th

Percentile

Shiny Control Panel

Add shiny inputs with one or more inline buttons that grow and shrink with inputs. Also add tool tips to input buttons and styling and messages for input validation.

Readme

shinypanel

Installation

remotes::install_github('alexvpickering/shinypanel')

Usage

Example control panel with button-attached inputs and tooltips:

control panel

library(shiny)
library(shinypanel)

ui <- fluidPage(
  div(class = 'row',
      div(class = 'col-sm-12 col-lg-6',
          div(class = 'well-form',
              textAreaInputWithButtons(
                inputId = 'text', 
                label = 'Type something:', 
                actionButton('btn3', '', icon('plus', 'fa-fw'), title = 'Click to add something')
              ),
              selectizeInputWithButtons(
                inputId = 'selection',
                label = 'Select something:',
                label_title = 'Information about input',
                actionButton('btn1', '', icon('tag', 'fa-fw'), title = 'this does something'),
                actionButton('btn2', '', icon('chevron-right', 'fa-fw'), title = 'this does something else'),
                options = list(multiple = TRUE)
              )
          )
      )
  )
)


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

  choices <- reactive({
    paste('Long Option', 1:5)
  })

  observe({
    updateSelectizeInput(session, 'selection', choices = choices())
  })
}

shinyApp(ui, server)

Functions in shinypanel

Name Description
selectizeInputWithValidation selectizeInput with validation utilities
toggleSelectizeButtons Show/hide all buttons in selectizeInputWithButtons
textInputWithButtons textInput with buttons and validation
textInputWithValidation textInput with validation
selectizeInputWithButtons selectizeInput with buttons and validation utilities
textAreaInputWithButtons textAreaInput with buttons and validation
No Results!

Last month downloads

Details

Type Package
License MIT + file LICENSE
Encoding UTF-8
LazyData true
RoxygenNote 7.1.1
NeedsCompilation no
Packaged 2020-10-08 20:00:55 UTC; alex
Repository CRAN
Date/Publication 2020-10-16 14:00:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/shinypanel)](http://www.rdocumentation.org/packages/shinypanel)