Winston Chang
21fb7959a5
Fix edge case with nested choices. Fixes #560
...
When the set of choices is a list containing a named vector of length 1,
choicesWithNames would return the wrong result.
2014-08-01 16:11:51 -05:00
Yihui Xie
029595f8ea
an edge case selectInput(choices = NULL)
...
firstChoice() may fail with an error "subscript out of bounds"
2014-07-17 15:59:33 -05:00
Yihui Xie
89dc1323e1
add a note section about the clickId/hoverId arguments in plotOutput(), since they seem to have been confusing grid graphics users
...
and re-wrap the roxygen comments
2014-07-16 17:27:00 -05:00
Yihui Xie
a4b5f63deb
a single quote ' was omitted here, making the Rd for plotOutput() incomplete since this line was ignored
2014-07-16 17:27:00 -05:00
Winston Chang
4a5b31e3a7
Simplify needOptgroup function
2014-07-16 16:57:17 -05:00
Winston Chang
597e86dd57
Make listify work on nested lists of depth > 1
2014-07-16 12:02:55 -05:00
Winston Chang
9b413de4d8
selectOptions: handle mixed options and optgroups
2014-07-16 00:51:57 -05:00
Winston Chang
3d77cbd677
Slight clarification of comment
2014-07-16 00:51:57 -05:00
Winston Chang
d7a01c32cc
Always convert choices to a (named) list
...
Converting it to a list, and ensuring that it's a named list reduces
many checks elsewhere.
2014-07-16 00:51:57 -05:00
Yihui Xie
f0886a7556
when we need <optgroup> for the child elements of choices, we just generate it no matter what the child element is
...
e.g. we use <optgroup> for A even if A only has one element: list(A = 'a', B = c('b1', 'b2'))
2014-07-11 14:03:47 -05:00
Yihui Xie
0e2666948f
when choice is not a list, we need to return its first element
2014-07-11 14:03:47 -05:00
Yihui Xie
e1fb29c8c5
factor out the code to generate options from checkboxGrouptInput() and radioButtons(), and use the new generator generateOptions() for them
2014-07-11 14:03:47 -05:00
Yihui Xie
fe3158fdd6
validateSelected() does not validate selected for the optgroup case; this function is only for shiny <= 0.9
2014-07-11 14:03:47 -05:00
Yihui Xie
721b26f80b
choicesWithNames() should also consider the optgroup case now: all optgroup nodes must be named
2014-07-11 14:03:47 -05:00
Yihui Xie
d3ecfb22ee
closes #326 : generate <optgroup> when choices is a named list of choices
...
note the nested level of optgroup can be greater than one here, however, the HTML4 spec only allows one level, i.e. optgroup must have select as its direct parent http://stackoverflow.com/q/1037732/559676
2014-07-11 14:03:47 -05:00
Yihui Xie
27a98020c9
recursively select the first choice, to make sure selected is a scalar, even when choices is a list of lists (optgroup)
2014-07-11 14:03:47 -05:00
Yihui Xie
6326c7cbaa
add a Note section to the documentation of conditionalPanel(), since it always confuses R users
...
e.g. https://groups.google.com/d/msg/shiny-discuss/AFItYcRXzyw/ywRy3EEtjw4J
2014-07-10 00:11:11 -05:00
Joe Cheng
77b125ce2d
Add windowTitle parameter to navbarPage
...
Fixes #493
2014-06-19 09:36:50 -07:00
Yihui Xie
4a623b596b
ignore width/height in plotOutput() when inline=TRUE, and document required width/height values in renderPlot()
2014-06-19 00:24:10 -05:00
Yihui Xie
bcf098ea7d
merge doc of width and height in renderPlot() and plotOutput()
2014-06-19 00:24:10 -05:00
Yihui Xie
7023f5b145
add an inline argument to textOutput(), imageOutput(), plotOutput(), and htmlOutput()
2014-06-19 00:24:10 -05:00
Yihui Xie
0cdd223172
cosmetic changes after #481 , and roxygenize
2014-06-04 15:30:15 -05:00
Yihui Xie
bd0eae0961
Merge pull request #481 from saurfang/master
...
Add inline option for RadioButton and checkboxGroupInput
2014-06-02 15:03:40 -05:00
Joe Cheng
eb9f5f9025
Dependency fixes
...
1) Give bootstrap deps a path so they can be used in static docs
2) Resolve dependencies before rendering page (whoops)
2014-05-31 08:06:03 -07:00
Joe Cheng
eb4d4d7437
Adapt to htmltools 0.2.1 API
2014-05-31 08:06:03 -07:00
Joe Cheng
44a795bf18
Extract HTML functionality to htmltools library
2014-05-31 08:06:03 -07:00
Winston Chang
880a12b914
Merge pull request #489 from yihui/bugfix/428
...
Fixes #428
2014-05-23 14:09:43 -05:00
Yihui Xie
39b4805a76
make sure the selected argument never contains names; fixes #428
2014-05-20 01:31:14 -05:00
Yihui Xie
85e020a513
examples of the 'width' argument
2014-05-19 11:24:56 -05:00
Yihui Xie
5b6268f5bc
add width to selectInput() as well
2014-05-19 11:23:52 -05:00
Yihui Xie
f8b38e4683
validateCssUnit(width) for selectize and slider
2014-05-17 01:32:01 -05:00
Yihui Xie
831fba9a53
add a 'width' option to selectizeInput() and sliderInput() to specify the width of these widgets
2014-05-17 01:28:27 -05:00
saurfang
b0f95cd9e0
Add inline options
...
inline options for radiobuttons and checkboxgroupinput to allow choices
rendered horizontally
2014-05-13 17:18:20 -04:00
Yihui Xie
26b0836756
since NULL in tag() will be dropped, there is no need to check is.null(icon)
2014-05-03 01:11:32 -05:00
Yihui Xie
a87dc9bab2
cosmetic: both if (FALSE) expr and for-loops return NULL
2014-05-03 01:09:51 -05:00
Joe Cheng
2a229774ef
Merge pull request #463 from jcheng5/bugfix/faster-select
...
Massively faster selectInput
2014-05-02 17:31:38 -07:00
Joe Cheng
7920d66cd0
Separate option tags with newline
2014-05-02 17:26:27 -07:00
Joe Cheng
50f78c6e40
Make tabsetPanel result visible
...
Without this, they don't show up in knitr documents
2014-05-01 14:31:25 -07:00
Joe Cheng
7e7afc6d38
Massively faster selectInput
2014-05-01 14:16:27 -07:00
Joe Cheng
e395ae6555
Merge branch 'html-deps'
...
Code reviewed by @jmcphers
Conflicts:
DESCRIPTION
R/bootstrap.R
R/reactives.R
2014-04-24 16:37:46 -07:00
Joe Cheng
59dbca250f
Fix roxygen
2014-04-21 16:50:06 -07:00
Joe Cheng
b9dbf610b0
Fix bootstrap themes
2014-04-21 13:16:34 -07:00
Joe Cheng
d443810520
Use html_dependency for date inputs, datatables
2014-04-21 12:35:12 -07:00
Joe Cheng
6945091238
First attempt at HTML dependency management
2014-04-18 15:18:51 -07:00
Joe Cheng
45669cacb1
Merge pull request #434 from jcheng5/private-random
...
Refactor private random seed code
2014-04-15 15:24:41 -07:00
Yihui Xie
87b09a534e
Merge pull request #435 from jcheng5/null-input-labels
...
Allow NULL input labels; add actionLink
2014-04-14 22:59:28 -05:00
Jonathan McPherson
6a9cba90f4
have validateCssUnit treat unit-free character strings as pixel units
2014-04-11 12:59:15 -07:00
Joe Cheng
b1d6687fb0
Fix private random seed mechanism
...
- Introduce randomInt/p_randomInt to generate random integers in a half-open range
- Stop using runif to generate integers
- Explicitly reset the private seed during .onLoad. I was getting the same "random" numbers from Shiny every time I restarted R!
2014-04-11 11:57:39 -07:00
Joe Cheng
f67e17b287
Allow NULL input labels; add actionLink
2014-04-11 11:00:41 -07:00
Joe Cheng
599fdc7ee5
Refactor private random seed code
2014-04-10 15:03:18 -07:00