Hello...
my_app_tmp <- list(
ui = shinyUI(fluidPage(
title = 'Selectize examples',
h3("Selectize examples with drag and drop"),
tags$head(
),
sidebarLayout(
sidebarPanel(width=3,
#dateRangeInput(inputId = 'mydateRange', label = tags$h5('Date Range: (yyyy-mm-dd)'), start = "2013-09-30", end = "2013-10-01"),
selectizeInput(inputId='s1', label= tags$h5('Selectize Example'), choices = NULL, multiple = TRUE,
options = list(
placeholder = 'Please select/type something',
onInitialize = I('function() { this.setValue(""); }'),
plugins = list('restore_on_backspace', 'remove_button', 'drag_drop'),
create = TRUE,
delimiter = ',',
persist = FALSE
))
),
mainPanel(width=9, verbatimTextOutput("out")))
)),
server = shinyServer(function(input, output, session) { output$out <- renderPrint({input$s1}) })
)
runApp(my_app_tmp)
However, when i un-comment the dateRangeInput controller in the ui; i end up with an error in the javascript console (Chrome); stating:
"Uncaught TypeError: Cannot read property 'empty' of undefined" relating to ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js:6
Would someone be able to help me understand why I am encountering this error. More specifically, why when i comment "dateRangeInput", the shiny app works fine, and when i include it, i get an error.
Thank you very much in advance..
session info:
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
and i am using shiny 0.9.1.9009