Skip to content

Commit

Permalink
closes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Frieß committed Sep 23, 2024
1 parent 8198b63 commit b047da2
Showing 1 changed file with 9 additions and 6 deletions.
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 b047da2

Please sign in to comment.