Winston Chang
bc0a19f55d
updateCheckboxGroup: allow clearing all choices. Fixes #981
2015-10-16 11:44:09 -05:00
Yihui Xie
9ab493a81f
make sure mop is numeric
...
it is funny that head(1:11,'100') produces a bunch of NA's, but head(1:11,'12') does not
2015-09-09 13:29:37 -05:00
Yihui Xie
dfc1f32595
Fixes #929 : defer setValue() for selectize until the options have been loaded from server
...
Previously I was using a hack to set the selected value of selectize, i.e. add the selected option(s) to selectize via addOptions() (because the selected option(s) may not have existed); this hack can be removed and we can set the value in the `success` callback of the Ajax request, by which time the options will be available
2015-09-09 13:29:37 -05:00
Yihui Xie
acad9354a6
Fixes #933 : make sure type is of length one
2015-08-26 10:48:38 -05:00
Winston Chang
241a482236
Add explicit namespace to non-base functions
2015-08-04 12:30:41 -05:00
Winston Chang
d9c7f21c02
Make updateSliderInput work with date/datetimes. Fixes #904
2015-07-21 12:32:18 -05:00
Winston Chang
926e508b8d
Fix updateSliderInput example code
2015-07-21 12:31:31 -05:00
Yihui Xie
a5e64274a2
Add two aliases of updateTabsetPanel(): updateNavbarPage() and updateNavlistPanel()
...
https://groups.google.com/d/msg/shiny-discuss/8VctqPqeurw/uAQIBvA1CpAJ
2015-07-02 01:37:14 -05:00
Yihui Xie
89bc7efbca
query$field is either an atomic vector, or a matrix, so use c() to coerce the result to a vector (previously RJSONIO::fromJSON() would return a list, but now jsonlite returns a matrix)
2015-05-20 12:44:13 -05:00
Yihui Xie
8df98c29b8
this comment is no longer true
2015-05-15 15:06:23 -05:00
Yihui Xie
7554f8395b
fixes #814 : load options after initialization of selectize in the server mode
2015-05-15 15:05:39 -05:00
Joe Cheng
fdbcb32be7
Allow updateSelectInput(choices=character(0)) to clear select choices
2015-03-24 13:00:00 -07:00
Winston Chang
defedda891
Switch from RJSONIO to jsonlite (again)
2015-02-23 16:41:36 -06:00
Winston Chang
040ae293fb
Revert switch to jsonlite
...
This reverts commits deffc90 , ab4dc64 , and 0755579 , returning to RJSONIO.
The purpose of this is to prepare for a maintenance release for 0.11
without the switch to jsonlite, to reduce the risk of new bugs.
2015-02-06 10:53:54 -06:00
Winston Chang
b7acaf9519
Convert donttest examples; check for interactive() instead
2015-01-22 13:21:23 -06:00
Winston Chang
075557929a
Switch from RJSONIO to jsonlite
2015-01-21 14:12:53 -06:00
Winston Chang
96b646b94a
Rename slider2Input to replace sliderInput
2014-11-26 14:20:25 -06:00
Winston Chang
623036f03b
Add updateSlider2Input
2014-11-26 14:19:05 -06:00
Yihui Xie
c8efd31d08
encode the JSON response for DataTables/selectize with UTF-8
...
to make sure multibyte characters in DataTables/selectize work
2014-11-13 10:27:56 -06:00
Yihui Xie
063ac989be
closes yihui/shiny#4 after cleaning it up a bit
...
use [searchField] instead of $.makeArray(), and unlist() it on the R side
2014-08-22 00:11:00 -05:00
Yihui Xie
c095085d84
fixes #557 : choicesWithNames() turns a character vector to a list, which is no longer appropriate as a column in data.frame()
2014-08-01 16:37:20 -05:00
Winston Chang
7159293337
Use consistent indentation for function definitions
2014-07-16 17:04:22 -05:00
Yihui Xie
29dd405fe5
the options and ... arguments are no longer needed
2014-07-16 15:50:31 -05:00
Yihui Xie
0f0b0cd3d8
explicitly define updateSelectInput() instead of using the trick to change the options argument of updateInputOptions()
2014-07-16 15:50:08 -05:00
Yihui Xie
1b68d61e54
R CMD check will warn against the possibly missing variables inline and type
2014-07-11 17:36:37 -05:00
Yihui Xie
418de862e6
rename newOptions to config
2014-07-11 14:17:08 -05:00
Yihui Xie
413653858e
inherit doc for updateFooInput() from fooInput()
2014-07-11 14:03:47 -05:00
Yihui Xie
d2fc851816
make updateSelectInput(), updateCheckboxGroupInput(), and updateRadioButtons() work
...
now session$sendInputMessage() does not send options as the choices data, but as a pre-generated raw HTML string; in shiny.js, we just receive this string, and .append() it to the input after the input is emptied
2014-07-11 14:03:47 -05:00
Yihui Xie
b6ee67aa41
make the selected argument of updateSelectizeInput() work even in the server mode
2014-04-25 02:38:38 -05:00
Yihui Xie
07bed0c7c7
factor out a function columnToRowData() so both updateSelectInput() and selectizeJSON() can use it
2014-04-25 02:37:45 -05:00
Yihui Xie
0be1ee46f2
do not ignore the names of choices data
2014-04-22 17:58:19 -05:00
Yihui Xie
62aaab0926
closes #422 : update the selectize options via updateSelectizeInput(options)
2014-04-14 22:34:48 -05:00
Yihui Xie
d9be6f1d2e
implementing the server-side selectize input
...
also added a new method shinysession$registerDataObj(), which was designed to be a general data retrieval method: we can store arbitrary data objects as "downloads", and return arbitrary http response based on the filter function; see renderDataTable() and updateSelectizeInput() for two examples
2014-04-13 00:02:08 -05:00
Yihui Xie
b2d004ca1a
closes #31 : try to avoid scientific notation of numbers
2014-02-25 22:58:08 -06:00
Yihui Xie
2e16fa1d70
fixes #401 : pass numbers as character strings in updateNumericInput() to preserver numeric precision when possible
2014-02-19 22:11:39 -06:00
Yihui Xie
3530871560
strip white spaces
2014-02-11 22:59:37 -06:00
Joe Cheng
dce66945ec
Merge pull request #340 from yihui/bug/null-choices
...
fix the bug when choices=NULL in updateCheckboxGroupInput()
2014-01-11 13:43:05 -08:00
Yihui Xie
0dbe4d936e
cosmetic changes, just because Github is not aware of my new commits for the PR after it was down
2014-01-08 16:23:23 -06:00
Yihui Xie
b243bc846b
also include input ID in the warning message, per suggestion of @jcheng5
2014-01-08 14:21:41 -06:00
Yihui Xie
557790b0e5
selected refers to values instead of labels/names of choices
...
added validateSelected() for backward compatibility
2013-12-31 16:48:04 -06:00
Yihui Xie
8eb5a45718
per suggestion of @wch, we do not pass the selected/checked status in the message; the selected values are in message$value, and they will be set via this.setValue(el, data.value) in receiveMessage() in shiny.js
...
also note that updateSelectInput() is essentially the same as updateCheckboxGroupInput() now, because it does not matter if the attribute name is 'selected' or 'checked'
2013-12-31 15:06:17 -06:00
Yihui Xie
7b64cef73b
fixes #176 : the problem of choices=NULL also affects selectInput()
2013-12-31 15:06:17 -06:00
Yihui Xie
106203170e
pass the selected value(s) to checkbox/radio group
2013-12-31 15:06:17 -06:00
Yihui Xie
174d2bfc11
only do mapply() when length(choices) > 0, otherwise options = list(), and this will lead to an empty checkbox/radio group
2013-12-31 15:06:17 -06:00
JJ Allaire
08fe74675b
update docs on updateTabsetPanel to reflect it's applicablity to navbarPage and navlistPanel
2013-12-25 15:16:52 -05:00
Winston Chang
ba4f3a1553
Speed up input update functions
2013-06-19 00:34:57 -05:00
Winston Chang
0c19105fbf
Add dateInput and dateRangeInput
...
Also:
* add initialize() method for input bindings
* cleanups for JShint
2013-04-24 12:18:20 -05:00
Winston Chang
1ac2448f90
Split sendMessage into type-specific functions
2013-04-10 12:30:58 -05:00
Winston Chang
b5f34b30d3
Add documentation for input updater functions
2013-04-10 12:13:53 -05:00
Winston Chang
d55335e70b
Make updateFooInput functions behave like fooInput functions
2013-04-08 18:38:16 -05:00