Feature: Multi-line Text Input Support#117
Open
Marwolaeth wants to merge 1 commit intodreamRs:masterfrom
Open
Conversation
Marwolaeth
commented
Aug 28, 2025
| data <- as.data.table(data) | ||
| data_rv$colnames <- copy(colnames(data)) | ||
| if (!is.null(var_multiline)) { | ||
| var_multiline <- intersect(var_multiline, var_edit) |
| data_rv$colnames <- copy(colnames(data)) | ||
| if (!is.null(var_multiline)) { | ||
| var_multiline <- intersect(var_multiline, var_edit) | ||
| var_multiline <- var_multiline[sapply(data[, var_multiline, with = FALSE], is.character)] |
Author
There was a problem hiding this comment.
Another option is to use conditional within conditional in edit_input_form when the variable is character
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
var_multilineargument ofedit_data_server()allows users to specify character columns that should use multi-line text inputs (textAreaInput), which is useful for longer text fields like descriptions, comments, or articles.For example, in a research database, you might have a 'notes' column with detailed observations. With this feature, you can easily configure that column to use a multi-line input instead of a single-line text field. As for me, I really miss this option in my current work. I looked at different ways to add this feature and decided to use an explicit function argument.
However, I struggled to develop any tests for this feature.
I'd appreciate your review and feedback. Thank you for your continued work on this excellent and useful package