Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
ad7fcdb
major revisions, probably should have broken this out into smaller co…
Jun 9, 2014
b43f0c1
deletions
Jun 9, 2014
9c02fa9
finished roxygenizing old functions
Jun 9, 2014
5f68485
working on bsMenuWrap
Jun 9, 2014
1f0d162
Fixed menubar demo
Jun 10, 2014
5d2408e
almost have bsMenuWrap working
Jun 10, 2014
8f23bb9
End of Day
Jun 10, 2014
ddad696
Help Filw
Jun 12, 2014
c12bbd7
working on receiveMessage for menu items
Jun 12, 2014
5987661
Getting Frustrated...
Jun 13, 2014
8af28c8
Weekend Work
Jun 17, 2014
52cfde4
End of Day - Cleaning up menu javascript
Jun 17, 2014
dd19e3e
I should be in bed...
Jun 18, 2014
54ee885
More or less have the menuItemGroups working...
Jun 18, 2014
61a76c2
started menuGroup function
Jun 18, 2014
a662912
updating readme
Jun 19, 2014
866e424
Done for the day
Jun 19, 2014
ce2eed6
Documented Table Highlighting Functions
Jun 20, 2014
53586f1
toxwatch tweaks
Jun 20, 2014
d9d8243
Update README.md
ebailey78 Jun 21, 2014
3cb1075
Continuing Cleanup
Jun 24, 2014
da7ebce
trying to figure out testing
Jun 24, 2014
8a42691
tinkering
Jun 25, 2014
0f8b0ea
tinkering
Jun 25, 2014
e24fcc9
runRemoteApp working
Jun 25, 2014
e5dcc02
Tweak runRemoteApp
Jun 25, 2014
a7db9d6
Revert "tinkering"
Jun 26, 2014
49a8a0d
Revert "tinkering"
Jun 26, 2014
6aafdc0
Merge branch 'menu-integration' of https://github.com/ebailey78/shiny…
Jun 26, 2014
b1b40c5
building first test
Jun 26, 2014
7966e4d
Working on alerts test
Jun 26, 2014
c2b6d30
Finished Alerts Test
Jun 27, 2014
6cd0a46
More Testing Fun
Jun 27, 2014
cff6622
Documented runRemoteApp
Jun 30, 2014
6fa4772
button update tests
Jul 1, 2014
e7c7131
documentin'
Jul 2, 2014
0c859b4
More documentin'
Jul 3, 2014
8a935e9
Even more documentin'
Jul 3, 2014
e045493
tw tweaks
Jul 14, 2014
a368fcc
demo tweaks
Jul 22, 2014
190f77c
exported modals
Jul 25, 2014
b83b3d8
preparing for updates
ebailey78 Jan 27, 2015
f723bd5
alert, collapse, and modal minimally working...
ebailey78 Jan 27, 2015
57c86df
Tooltips and Popovers working
ebailey78 Jan 27, 2015
435b06a
Updated Update
ebailey78 Jan 27, 2015
d910a79
reworked buttons, starting button groups
ebailey78 Jan 28, 2015
f56e41b
fixed tooltips issue #15
ebailey78 Jan 30, 2015
ed7bb69
Starting Over
ebailey78 Feb 17, 2015
0e03aa8
Blank Slate
ebailey78 Feb 17, 2015
4f5d06f
Restored description file
ebailey78 Feb 17, 2015
572dcff
Added NEWS and README
ebailey78 Feb 17, 2015
83c7448
Working to fully implement bsAlert
ebailey78 Feb 17, 2015
baab1a3
adding code highlighting to demo
Feb 18, 2015
82a03ee
Working to finalize Alerts
ebailey78 Feb 18, 2015
5e0498a
Working to finalize Alerts
ebailey78 Feb 18, 2015
abf4618
one more thing.
ebailey78 Feb 18, 2015
656c90a
Can I test with a app on shinyapps?
ebailey78 Feb 18, 2015
a2ad4ab
Cannot get RSelenium to work. Will test at home.
ebailey78 Feb 18, 2015
1ff5ad3
Fixed version number in DESCRIPTION file
ebailey78 Feb 18, 2015
72ae506
working on collapsePanels
ebailey78 Feb 19, 2015
f67e930
blash
ebailey78 Mar 4, 2015
e763609
anewstart
ebailey78 Mar 5, 2015
dcead64
added Buttons
ebailey78 Mar 6, 2015
f2a325b
Update README.md
ebailey78 Mar 6, 2015
cc2295e
Update README.md
ebailey78 Mar 6, 2015
dd03404
Fixed Collapse issue from Nathan
ebailey78 Mar 10, 2015
aa00e4b
blah
ebailey78 Mar 10, 2015
0bae19e
documentWriter
ebailey78 Mar 11, 2015
6aeffc4
docWriter Tweaks
ebailey78 Mar 11, 2015
fe630b8
separated docgen
ebailey78 Mar 11, 2015
66a89dc
Updated Examples to work with docgen
ebailey78 Mar 11, 2015
c316cf5
fixed error in Collapses example
ebailey78 Mar 11, 2015
2fe3f2f
removed debugging code
ebailey78 Mar 12, 2015
c65fd2f
added check for existing alert before creating new alert
ebailey78 Mar 12, 2015
1319b22
more debugging, buttons and removeTooltip/removePopover
ebailey78 Mar 13, 2015
41fbf52
Fixed HTML issue with popover content, issue #22. Extended wait time …
ebailey78 Mar 19, 2015
8d00049
Added tipify as possible solution to issue #21.
ebailey78 Mar 19, 2015
683f4cb
More cleanup for re-submission to CRAN
ebailey78 Mar 25, 2015
cba5d9b
changed examples again to try to get CRAN approval. Now creating 'app…
ebailey78 Mar 26, 2015
d2d195b
Updated Date before resubmission to CRAN
ebailey78 Mar 31, 2015
fccf2c3
Update README.md
ebailey78 Mar 31, 2015
f2e2fc8
Working to integrate ThomasSiegmund's shinyTypeahead package to retur…
ebailey78 Mar 31, 2015
557b56a
Added footer and close.button arguments to bsModal (Issue #25)
ebailey78 Apr 14, 2015
bf58f4e
Added experimental width argument to bsModal (Issue #27)
ebailey78 Apr 15, 2015
02b318a
updated documentation with modal upgrades.
ebailey78 Apr 15, 2015
67ba9a2
Escaped single quotes to fix issue #30
ebailey78 Apr 28, 2015
21fdccb
Changed how popover and tooltips are assigned to an element on the page
ebailey78 May 17, 2016
617bcaf
added more tag manipulators for class and style
ebailey78 May 17, 2016
9e48fbd
testing new popover/tooltip function
ebailey78 May 17, 2016
fea14c4
updated description file
ebailey78 May 17, 2016
c329f8c
hover Alerts
baileyeiu Jul 1, 2016
ceaab64
Merge remote-tracking branch 'origin/shinyBS3'
xhudik Jul 8, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
^.*\.Rproj$
^\.Rproj\.user$
README.html
man-roxygen
inst\tests
README.md
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.Rproj.user
.Rhistory
.RData
README.html
README.html
docs/Alerts2.html
19 changes: 10 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Package: shinyBS
Type: Package
Title: Twitter Bootstrap Components for Shiny
Version: 0.25
Date: 2014-03-13
Title: Extra Twitter Bootstrap Components for Shiny
Version: 0.62
Date: 2015-03-31
Author: Eric Bailey
Maintainer: Eric Bailey <ebailey@idem.in.gov>
Description: Adds more Twitter Bootstrap components to the shiny interface
Depends: methods
Imports: shiny (>= 0.8.0)
URL: https://github.com/ebailey78/shinyBS
Maintainer: Eric Bailey <eb11307@gmail.com>
Description: Adds easy access to additional Twitter Bootstrap components to Shiny.
Imports:
shiny (>= 0.13.2),
htmltools
URL: https://ebailey78.github.io/shinyBS
BugReports: https://github.com/ebailey78/shinyBS/issues
License: GPL-3
License: GPL-3
70 changes: 23 additions & 47 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
export(bsAlert,
createAlert,
closeAlert,
bsDemo,
bsNavDemo,
bsGlyph,
bsNavBar,
updateNavBar,
bsNavLink,
bsNavToggleLink,
updateToggleLink,
pageWithNavBar,
bsNavDivider,
bsNavButton,
bsNavTextInput,
bsNavDateInput,
bsNavDateRangeInput,
bsNavDropDown,
updateDropDown,
bsNavTextOutput,
bsPopover,
addPopover,
bsProgressBar,
updateProgressBar,
bsTooltip,
addTooltip,
bsTypeAhead,
bsNavTypeAhead,
updateTypeAhead,
removeTooltip,
removePopover,
bsCollapse,
bsCollapsePanel,
updateCollapse,
bsButtonGroup,
bsButton,
bsActionButton,
bsToggleButton,
updateButtonGroup,
updateButton,
highlightCells,
highlightRows,
bsMedia,
bsModal,
toggleModal)
import(shiny,
methods)
# Generated by roxygen2 (4.1.0): do not edit by hand

export(addPopover)
export(addTooltip)
export(bsAlert)
export(bsButton)
export(bsCollapse)
export(bsCollapsePanel)
export(bsExample)
export(bsModal)
export(bsPopover)
export(bsTooltip)
export(bsTypeahead)
export(closeAlert)
export(createAlert)
export(popify)
export(removePopover)
export(removeTooltip)
export(tipify)
export(toggleModal)
export(updateButton)
export(updateCollapse)
export(updateTypeahead)
52 changes: 0 additions & 52 deletions NEWS

This file was deleted.

82 changes: 82 additions & 0 deletions R/Alerts.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#'Alerts
#'
#'Alerts allow you to communicate information to the user on the fly. Standard
#'Bootstrap styling options give the user a hint at the type of information
#'contained in the Alert.
#'
#'@section Components:
#'There are three functions in the Alerts family:
#' \describe{
#' \item{\code{\link{bsAlert}}}{Used in the UI to create an anchor where your
#' Alerts will be displayed.}
#' \item{\code{\link{createAlert}}}{Used in the Server logic to create
#' alerts. This would be used within a reactive context to display error
#' or success messages to the user based on the status of that context.}
#' \item{\code{\link{closeAlert}}}{Used in the Server logic to close an alert
#' that is already open. By default, Alerts are dismissable by the user,
#' but this offers you a way to close them programmatically.}
#' }
#'
#'@details
#'To create alerts in your Shiny app you must place \code{bsAlert} in your ui.
#'This serves as an anchor that tells shinyBS where to place the alerts created
#'with \code{createAlert}.
#'
#'Use \code{createAlert} in your server script to add alerts to the anchor
#'you created with \code{bsAlert} in your ui. You can place \code{createAlert}
#'in observers, reactives, or outputs. A common usage may be to have logic that
#'validates a user's inputs. If they are valid produce the requested output, if
#'not use \code{createAlert} to give the user info about what they need to
#'change.
#'
#'@section Changes:
#'\code{style} was called \code{type} in previous versions of shinyBS.
#'
#'\code{anchorId} was called \code{inputId} in previous versions of shinyBS.
#'
#'\code{content} was called \code{message} in previous versions of shinyBS.
#'
#'@examples
#'
#'library(shiny)
#'library(shinyBS)
#'app = shinyApp(
#' ui =
#' fluidPage(
#' sidebarLayout(
#' sidebarPanel(textInput("num1", NULL, value = 100),
#' "divided by", textInput("num2", NULL, value = 20),
#' "equals", textOutput("exampleOutput")),
#' mainPanel(
#' bsAlert("alert")
#' )
#' )
#' ),
#' server =
#' function(input, output, session) {
#' output$exampleOutput <- renderText({
#' num1 <- as.numeric(input$num1)
#' num2 <- as.numeric(input$num2)
#'
#' if(is.na(num1) | is.na(num2)) {
#' createAlert(session, "alert", "exampleAlert", title = "Oops",
#' content = "Both inputs should be numeric.", append = FALSE)
#' } else if(num2 == 0) {
#' createAlert(session, "alert", "exampleAlert", title = "Oops",
#' content = "You cannot divide by 0.", append = FALSE)
#' } else {
#' closeAlert(session, "exampleAlert")
#' return(num1/num2)
#' }
#'
#' })
#' }
#')
#'
#'\dontrun{
#' runApp(app)
#'}
#'@templateVar item_name Alerts
#'@templateVar family_name Alerts
#'@template footer
NULL
115 changes: 115 additions & 0 deletions R/Buttons.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
#'Buttons
#'
#'Twitter Bootstrap gives many options for styling buttons that aren't made
#'available by standard Shiny. Use shinyBS to create buttons of different sizes,
#'shapes, and colors.
#'
#'@section Components:
#'There are two functions in the Buttons family:
#' \describe{
#' \item{\code{\link{bsButton}}}{Used in the UI to create a button. Buttons
#' can be of the type \code{action} or \code{toggle}.}
#' \item{\code{\link{updateButton}}}{Used in the Server logic to modify the
#' state of a button created with \code{\link{bsButton}}}
#' }
#'
#'@details
#'Create a button in the UI with \code{\link{bsButton}}. If \code{type = "action"}
#'the button will behave like the standard \code{\link{actionButton}} in shiny.
#'If \code{type = "toggle"} the button will behave like a \code{\link{checkboxInput}}
#'with an on and off state. It will return \code{TRUE} or \code{FALSE} to the Server
#'depending on its state.
#'
#'You can update the style and state of a \code{\link{bsButton}} from the Server
#'logic with \code{\link{updateButton}}. For example, a button could be set to
#'\code{disabled = TRUE} until the user has made some other selections, then once
#'those selections have been made, an observer on the Server could use \code{\link{updateButton}}
#'to enable the button allowing the user to proceed. Alternatively, you could set
#'the button to \code{style = "success"} to let them know that the button is ready
#'to be clicked.
#'
#'@section Changes:
#'\code{bsActionButton} and \code{bsToggleButton} were replaced with just
#'\code{\link{bsButton}} with a \code{type} argument.
#'
#'\code{icon} was added to allow placing an icon in the button.
#'
#'@examples
#'library(shiny)
#'library(shinyBS)
#'app = shinyApp(
#' ui =
#' fluidPage(
#' sidebarLayout(
#' sidebarPanel(
#' sliderInput("bins",
#' "Move the slider to see its effect on the button below:",
#' min = 1,
#' max = 50,
#' value = 1),
#' bsButton("actTwo", label = "Click me if you dare!", icon = icon("ban")),
#' tags$p("Clicking the first button below changes the disabled state of the second button."),
#' bsButton("togOne", label = "Toggle button disabled status",
#' block = TRUE, type = "toggle", value = TRUE),
#' bsButton("actOne", label = "Block Action Button", block = TRUE)
#'
#' ),
#' mainPanel(
#' textOutput("exampleText")
#' )
#' )
#' ),
#' server =
#' function(input, output, session) {
#' observeEvent(input$togOne, ({
#' updateButton(session, "actOne", disabled = !input$togOne)
#' }))
#' observeEvent(input$bins, ({
#'
#' b <- input$bins
#' disabled = NULL
#' style = "default"
#' icon = ""
#'
#' if(b < 5) {
#' disabled = TRUE
#' icon <- icon("ban")
#' } else {
#' disabled = FALSE
#' }
#'
#' if(b < 15 | b > 35) {
#' style = "danger"
#' } else if(b < 20 | b > 30) {
#' style = "warning"
#' } else {
#' style = "default"
#' icon = icon("check")
#' }
#'
#' updateButton(session, "actTwo", disabled = disabled, style = style, icon = icon)
#'
#' }))
#'
#' output$exampleText <- renderText({
#' input$actTwo
#' b <- isolate(input$bins)
#' txt = ""
#' if((b > 5 & b < 15) | b > 35) {
#' txt = "That was dangerous."
#' } else if((b > 5 & b < 20) | b > 30) {
#' txt = "I warned you about that."
#' } else if(b >= 20 & b <= 30) {
#' txt = "You have chosen... wisely."
#' }
#' return(txt)
#' })
#' }
#')
#'\dontrun{
#' runApp(app)
#'}
#'@templateVar item_name Buttons
#'@templateVar family_name Buttons
#'@template footer
NULL
Loading