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
Is there an Editor extension available for the DT package #28
Comments
|
I guess it is probably not coming soon, but thanks for filing the request anyway :) Update: For any future visitors of this issue, please read #480, and you can ignore all replies below. |
|
Hi Yihui, Just a question. If I bought the Editor from DT, would it be easy to make I looked at their site I need client and server side code(?). As I What would be a good resource or recommended material would you suggest I Thanks, On Mon, Mar 23, 2015 at 5:01 PM, Yihui Xie notifications@github.com wrote:
|
|
@mtseman Sorry, I have not really played with the Editor yet, so I do not know how to answer you at the moment. I imagine we are not going to need .NET or PHP, and editing can be done through R if you use server-side processing. It should not be too difficult to implement a prototype, but I'm not sure what other features that users might want besides editing the values in cells. |
|
It would be great to have Editor extension available. One use case is user input of tabular data, see one mockup here: https://github.com/danielkrizian/handsonimport, which I implemented with Handsontable. Corresponding R wrapper is https://github.com/trestletech/shinyTable or older Winston Chang's https://github.com/wch/shiny-handsontable |
|
+1 |
|
This is a built-in feature of Handsontable but not DataTables (I did not purchase the Editor extension or try it). I will have to do every bit by myself, and that is what has been holding me here. I just outlined some ideas in #64. |
|
Hey, YiHui, I like your datatable package. I will vote for the idea to add an editor extension, since after some exploration, I didn't see any easy-to-use way to edit the table, except the Thanks for what you done, for all these R packages that riches the life~! |
|
Strong +1 :) |
|
|
|
I have been experimenting with this recently, and I have a working prototype now. You can double click on a cell to edit its value: devtools::install_github('rstudio/DT')
library(shiny)
library(DT)
shinyApp(
ui = fluidPage(
DT::dataTableOutput('x1')
),
server = function(input, output, session) {
x = iris
x$Date = Sys.time() + seq_len(nrow(x))
output$x1 = DT::renderDataTable(x, selection = 'none')
proxy = dataTableProxy('x1')
observeEvent(input$x1_cell_edit, {
info = input$x1_cell_edit
str(info)
i = info$row
j = info$col
v = info$value
x[i, j] <<- DT:::coerceValue(v, x[i, j])
replaceData(proxy, x, resetPaging = FALSE)
})
}
)I want to emphasize again that this is experimental. Feedback is welcome, but there is no guarantee to ship this feature eventually (I'll definitely try). |
|
Really impressive package! I have used the editor feature and it is also very nice. |
|
Great package! I would like this feature as well. I tried to load a file, edit it and save it but I am somehow not able to edit user defined files here. I managed to do that using rhandsontable but with its great features, I want to do it using DT. I have asked a question here. http://stackoverflow.com/questions/40372347/load-edit-and-download-a-csv-file-in-shiny Any help will be appreciated. Thanks! |
|
Hello:I have successfully edited tables in DT with shiny using the Devon version from GitHub... please try that...Usman Suleman |
|
@yihui - does this package replace the current version of DT? I noticed that is 28 commits behind the master ... Will installing this pose any threat to the basic DT functionality? I haven't tried it yet, but does this actually use the DataTables Editor plugin, or does it offer another way of editing the table's data? We have been itching to get our Editor plugin working with Shiny - it is such a great interface to edit tables' data ... |
|
@paraviz02 I don't think this |
|
Great, thank you. As far as the traditional "Editor" plugin from DataTables is concerned (we have purchased a license for this), what are your thoughts on adding this to DT? When using outside of Shiny, the ability to select a row and then modify the contents (that may or may not be visible or even included in the actual table) in a lightbox style edit window is very nice. |
|
I don't have a copy of the Editor plugin, so I have no idea. |
|
@yihui this editor feature looks great. What are the milestones to make it mergeable to the master branch? |
|
@happyshows The only thing that bothers me a bit is |
|
I just read through the SO question, it seems that the only problem is with Factor type column. But take a step back, should we even allow user to manually enter a new level to a large df? If it's a small df, factors won't play much roles there, using strings values sounds good to me. My 2 cents. |
|
@happyshows I tend to agree with you. |
|
@earthcli Besides |
|
@yihui thanks, it works! |
|
Hi @yihui , this looks like an amazing feature. Do you expect that being merged into master branch / CRAN soon? Thank you! |
|
+1 |
|
Perhaps in the next couple of weeks. |
|
Hallo @yihui, thank you for this incredible feature. I started using it yesterday and it almost works perfectly. |
|
Editing table cells is a great feature! Thanks for adding this feature. |
|
To anyone having issues with editing their table: it may be because your columns are factors. I was having an issue where I would input an edit, the table would reject it, then I would input another edit and the second edit would be rejected, but the first would actually be saved. This would even happen with integer or logical columns. Once I changed my table to not include any factors (perhaps with |
|
If aiming for perfection, Please do, "Insert New Row" and "Delete Row" as well.... |
|
Hello @yihui , Would be beautiful. |
|
+1 |
|
Hi everyone, finally I'm back on DT. Apologies for being missing for almost two years! (My excuses are here and here). I have spent about three weeks on processing all the Github issues left behind in the two years, and also polished up the table editing feature. It is pretty much done now, and I'll appreciate it if you could test it. See #480 for all the details. |
|
@yihui welcome back! Thank you for working on DT again. I really rely on this fantastic package. |
* make it possible to edit values in table closes #28 * export coerceValue() * move up the double click event, to make it possible to edit a pure static table on an HTML page without Shiny
|
#480 has been merged. Currently I'm hoping to make a CRAN release next week. |
|
What's the best workaround to edit cells on a mobile (when double-click is zoom)? |
|
Dear sender,
This user does not exist anymore.
Please contact Michael Heiser (heiser@metabolomicdiscoveries.com) instead.
Thank you very much.
…__
METABOLOMIC DISCOVERIES GmbH
Am Mühlenberg 11
14476 Potsdam, Germany
Tel +49 331 95143881
Fax +49 322 22130972
www.metabolomicdiscoveries.com
Follow us on twitter.com/mdiscoveries
Geschäftsführer: Dr. Nicolas Schauer
Handelsregister: Amtsgericht Potsdam
HRB: 22137P, USt-IdNr. DE 266143989
|
|
unfortunately, its not working for me.... does anyone else also facing the problem. |
I love this package. I combined several extensions and it really helps my app look great and function.
I thought KeyTable would allow me to edit, but it just navigates and highlights.
Is there an editor extension available or coming soon.
Thanks!
Mike
The text was updated successfully, but these errors were encountered: