-
Notifications
You must be signed in to change notification settings - Fork 182
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
Conversation
inst/htmlwidgets/datatables.js
Outdated
@@ -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) { |
There was a problem hiding this comment.
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() {
...
There was a problem hiding this 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!
Awesome thanks! |
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. |
@danielcanueto Did you read the examples in #480? |
Sorry, I hadn't seen this pull. Thanks! |
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