jienagu / dt-editor Goto Github PK
View Code? Open in Web Editor NEWThis is a DT Editor Shiny app
License: GNU General Public License v3.0
This is a DT Editor Shiny app
License: GNU General Public License v3.0
Hello @jienagu. Thank you creating this amazing DT-Editor! I had a question with regards to the "Edit Modal" part of the shiny app. As of now, all my fields that I want to edit are textInput
but I want some of them to be selectInput
. Is it possible to have the sample dropdown buttons in the "Edit Modal" like you have it in the "Add Row Modal". If so, could you please guide me? Thank you!
I got below replication of R shiny app which is simpler version of yours, when run it and edit the last column of iris data frame, the app always give me this error message: Warning: Error in <<-: invalid (NULL) left side of assignment
Could you please help me to debug it? Thanks.
library(shiny)
library(DT)
ui <- fluidPage(
DTOutput("iris_table")
)
server <- function(input, output, session) {
iris_data <- reactiveVal(iris)
output$iris_table <- renderDT({
datatable(iris_data(), editable = list(target = "column", disable = list(columns = c(0:4))))
})
observeEvent(input$iris_table_cell_edit, {
info <- input$iris_table_cell_edit
str(info)
i <- info$row
j <- info$col
v <- info$value
iris_data()[i, j] <<- DT::coerceValue(v, iris_data()[i, j])
# save the updated iris data frame as iris_updated.rds file in a directory
saveRDS(iris_data(), file = "iris_updated.rds")
})
}
shinyApp(ui, server)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.