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

Please don't make tables editable by default #483

Closed
carlganz opened this issue Jan 18, 2018 · 3 comments
Closed

Please don't make tables editable by default #483

carlganz opened this issue Jan 18, 2018 · 3 comments
Milestone

Comments

@carlganz
Copy link
Contributor

Hello @yihui,

The new editor feature is great. However, the current implementation makes all tables editable, and I don't see a parameter that lets you opt out.

I will make a PR that makes the editor optional. I think it would be a good idea to make the table uneditable by default. There are many datatables in production Shiny applications that were built with the expectation that the tables would not be editable.

Kind Regards

@yihui
Copy link
Member

yihui commented Jan 18, 2018

Okay, I'll provide an option.

Actually this feature won't bring any security concerns: you may feel anyone can edit the table in your app, but editing only occurs on the client-side in the browser by default, and your data won't be modified unless you explicitly choose to do it in your server logic (via replaceData(); see examples in #480). By default, editing the table in one person's browser has no effect on the app in other people's browsers or the server.

@yihui yihui added this to the v0.3 milestone Jan 18, 2018
@carlganz
Copy link
Contributor Author

Thanks!

It's not a security issue. I have quite a few applications where I have text inputs inside of datatables, so now when people dbl click the text input instead of getting the text input they get the DT editor input and everything breaks.

@yihui
Copy link
Member

yihui commented Jan 18, 2018

Got you.

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