wrap Editor QR Scanner into shiny DT::renderDT

wrap Editor QR Scanner into shiny DT::renderDT

kmezhoudkmezhoud Posts: 2Questions: 1Answers: 0

Dear all,

This blog seems to be a good starting code to wrap QB or bar code reader from javascript library to datatable in shiny app.

How can a default editable DT from shiny app, can include additional javascript, like in the blog to get the same result?
Thanks

library(shiny)
library(DT)
shinyApp(
  ui = fluidPage(
    DTOutput('x2')
  ),
  server = function(input, output, session) {
    x = head(iris)
    x$codeBar = "" 
    output$x2 = renderDT(x, editable = T)
  }
)

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    I'm sorry to say I know next to nothing about R / Shiny. You'd need to ask in StackOverflow or similar about Shiny questions.

    In terms of using Editor with a Shiny app, the client / server data interchange used by Editor is fully documented so you can create a server-side that will work with Editor.

    In terms of the QR code in Editor - it is just treated the same as any other field. It is just a value.

    Allan

  • kmezhoudkmezhoud Posts: 2Questions: 1Answers: 0

    Thanks!

This discussion has been closed.