@@ -169,13 +169,13 @@ tm_t_crosstable <- function(label = "Cross Table",
169169 checkmate :: assert_class(basic_table_args , classes = " basic_table_args" )
170170
171171 if (checkmate :: test_list(decorators , " teal_transform_module" , null.ok = TRUE )) {
172- decorators <- if (checkmate :: test_names(names(decorators ), subset.of = c(" default" , " table " ))) {
172+ decorators <- if (checkmate :: test_names(names(decorators ), subset.of = c(" default" ))) {
173173 lapply(decorators , list )
174174 } else {
175175 list (default = decorators )
176176 }
177177 }
178- assert_decorators(decorators , null.ok = TRUE , names = c(" default" , " table " ))
178+ assert_decorators(decorators , null.ok = TRUE , names = c(" default" ))
179179 # End of assertions
180180
181181 # Make UI args
@@ -242,7 +242,7 @@ ui_t_crosstable <- function(id, x, y, show_percentage, show_total, pre_output, p
242242 checkboxInput(ns(" show_total" ), " Show total column" , value = show_total )
243243 )
244244 ),
245- ui_decorate_teal_data(ns(" decorator" ), decorators = subset_decorators(" table " , args $ decorators ))
245+ ui_decorate_teal_data(ns(" decorator" ), decorators = subset_decorators(" default " , args $ decorators ))
246246 ),
247247 forms = tagList(
248248 teal.widgets :: verbatim_popup_ui(ns(" rcode" ), " Show R code" )
@@ -418,7 +418,7 @@ srv_t_crosstable <- function(id, data, reporter, filter_panel_api, label, x, y,
418418 decorated_output_q <- srv_decorate_teal_data(
419419 id = " decorator" ,
420420 data = output_q ,
421- decorators = subset_decorators(" table " , decorators ),
421+ decorators = subset_decorators(" default " , decorators ),
422422 expr = table
423423 )
424424
0 commit comments