Skip to content

Commit

Permalink
Merge pull request #48 from eodaGmbH/feature/modify_column_vectors
Browse files Browse the repository at this point in the history
Closes #44
  • Loading branch information
crazycapivara authored Sep 23, 2024
2 parents db51758 + b047da2 commit eb7cb56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.1.2
Date: 2024-09-20 09:54:46 UTC
SHA: 9f7949def2b1079e140042cee48c201d7f92e1d7
Date: 2024-09-22 12:32:20 UTC
SHA: db51758ee1a2fdd9f7cd74ea9f6064d5acabae00
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rtabulator
Type: Package
Title: R Bindings for 'Tabulator JS'
Version: 0.1.2
Version: 0.1.2.9000
Date: 2024-09-22
Authors@R: c(
person("Stefan", "Kuethe", email = "[email protected]", role = c("aut", "cre", "cph")),
Expand Down
15 changes: 9 additions & 6 deletions R/columns.R
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,17 @@ set_calculation <- function(

# Generics

modify_col_def <- function(widget, column, col_update) {
for (index in 1:length(widget$x$options$columns)) {
if (widget$x$options$columns[[index]]$field == column) {
widget$x$options$columns[[index]] <- utils::modifyList(
widget$x$options$columns[[index]], col_update
)
modify_col_def <- function(widget, columns, col_update) {
for(column in columns){
for (index in 1:length(widget$x$options$columns)) {
if (widget$x$options$columns[[index]]$field == column) {
widget$x$options$columns[[index]] <- utils::modifyList(
widget$x$options$columns[[index]], col_update
)
}
}
}


return(widget)
}

0 comments on commit eb7cb56

Please sign in to comment.