Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No handler registered #825

Closed
avsolovey opened this issue Feb 10, 2022 · 1 comment
Closed

No handler registered #825

avsolovey opened this issue Feb 10, 2022 · 1 comment

Comments

@avsolovey
Copy link

avsolovey commented Feb 10, 2022

sorry newbie...

There is an error while working with package "jsTreeR". Handler not found.

 _Error in <Anonymous>: No handler registered for type jstree:jsTreeR.list
  [No stack trace available]
Error in (function (name, val, shinysession)  : 
  No handler registered for type jstree:jsTreeR.list_

Please help me fix it Thank you.

app_ui <- function(request) {
  tagList(
    # Leave this function for adding external resources
    golem_add_external_resources(),
    # Your application UI logic 
    fluidPage(
      fluidRow(
        column(
                width = 4,
                jsTreeR::jstreeOutput("jstree")  
              ),
        column(
          width = 8,
          verbatimTextOutput("Selections")
              )
      )
    )
  )
}


app_server <- function( input, output, session ) {
  # Your application server logic 
   nodes <- list(
    list(
      text = "RootB",
      data = list(group = TRUE),
      children = list(
        list(
          text = "ChildB1"
        ),
        list(
          text = "ChildB2"
        )
      )
    )
  )
  
  output[["jstree"]] <- jsTreeR::renderJstree({
    jsTreeR::jstree(nodes, checkboxes = TRUE, theme = "proton", selectLeavesOnly = FALSE)
      })
  
  output[["Selections"]] <- renderPrint({
                            input[["jstree_selected"]]
                 
  }) 
    output[["jstree"]] <- jsTreeR::renderJstree({
         jsTreeR::jstree(nodes, checkboxes = TRUE, theme = "proton", selectLeavesOnly = FALSE)
    
  })
    output[["Selections"]] <- renderPrint({
                  input[["jstree_selected"]]
      })  
}

Description

Package: test
Title: PKG_TITLE
Version: 0.0.0.9000
Authors@R: person('AUTHOR_FIRST', 'AUTHOR_LAST', email = '[email protected]', role = c('cre', 'aut'))
Description: PKG_DESC.
License: MIT + file LICENSE
Imports: 
    config (>= 0.3),
    golem (>= 0.3.1),
    jsTreeR,
    listviewer,
    miniUI,
    reactR,
    shiny (>= 1.6.0)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
@ColinFay
Copy link
Member

Hey,

It's an old issue, and as of today I can't reproduce the error with the provided code.

Closing for now, feel free to comment for a re-opening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants