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

add editable parameter #484

Merged
merged 3 commits into from
Jan 19, 2018
Merged

add editable parameter #484

merged 3 commits into from
Jan 19, 2018

Conversation

carlganz
Copy link
Contributor

@carlganz carlganz commented Jan 18, 2018

When I run roxygen all the rd files get rewritten so I didn't update docs

Feel free to disregard this PR if you have a different implementation.

Fixes #483

@@ -668,28 +668,30 @@ HTMLWidgets.widget({
// run the callback function on the table instance
if (typeof data.callback === 'function') data.callback(table);

if (data.editable) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good to me, but I hope to avoid the changes from indentation. You don't need the curly braces since it is a single expression, e.g.

if (data.editable) table.on('dblclick.dt', 'tbody td', function() {
  ...

@yihui yihui added this to the v0.3 milestone Jan 19, 2018
Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the changes by myself. Thanks!

@yihui yihui merged commit dab1dc6 into rstudio:master Jan 19, 2018
@carlganz
Copy link
Contributor Author

Awesome thanks!

@danielcanueto
Copy link

Would it be possible to make that edition is not only usable for visual purposes but that actual values are also changed? reactiveValues variables visualized through DT can be edited on the table but edits are not saved to the variables. This was possible with previous feature/editor branch, but it seems this brach is not active anymore.

@yihui
Copy link
Member

yihui commented Feb 14, 2018

@danielcanueto Did you read the examples in #480?

@danielcanueto
Copy link

Sorry, I hadn't seen this pull. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants