@@ -168,8 +168,8 @@ tm_t_crosstable <- function(label = "Cross Table",
168168 checkmate :: assert_multi_class(post_output , c(" shiny.tag" , " shiny.tag.list" , " html" ), null.ok = TRUE )
169169 checkmate :: assert_class(basic_table_args , classes = " basic_table_args" )
170170
171- decorators <- normalize_decorators(decorators )
172- assert_decorators(decorators , null.ok = TRUE )
171+ decorators <- normalize_decorators(decorators , " plot " )
172+ assert_decorators(decorators , null.ok = TRUE , " plot " )
173173 # End of assertions
174174
175175 # Make UI args
@@ -236,7 +236,7 @@ ui_t_crosstable <- function(id, x, y, show_percentage, show_total, pre_output, p
236236 checkboxInput(ns(" show_total" ), " Show total column" , value = show_total )
237237 )
238238 ),
239- ui_decorate_teal_data(ns(" decorator" ), decorators = subset_decorators(" default " , args $ decorators ))
239+ ui_decorate_teal_data(ns(" decorator" ), decorators = subset_decorators(" plot " , args $ decorators ))
240240 ),
241241 forms = tagList(
242242 teal.widgets :: verbatim_popup_ui(ns(" rcode" ), " Show R code" )
@@ -412,7 +412,7 @@ srv_t_crosstable <- function(id, data, reporter, filter_panel_api, label, x, y,
412412 decorated_output_q <- srv_decorate_teal_data(
413413 id = " decorator" ,
414414 data = output_q ,
415- decorators = subset_decorators(" default " , decorators ),
415+ decorators = subset_decorators(" plot " , decorators ),
416416 expr = table
417417 )
418418
0 commit comments