Skip to content

Commit

Permalink
$active_module_element_text method TealAppDriver (#1167)
Browse files Browse the repository at this point in the history
Followu-up after #1156
  • Loading branch information
m7pr authored Mar 20, 2024
1 parent ba40033 commit 6779cee
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ TealAppDriver <- R6::R6Class( # nolint: object_name.
sprintf("#%s-%s", self$active_module_ns(), element)
},
#' @description
#' Get the text of the active shiny name space bound with a custom `element` name.
#'
#' @param element `character(1)` the text of the custom element name.
#'
#' @return (`string`) The text of the active shiny name space of the component bound with the input `element`.
active_module_element_text = function(element) {
checkmate::assert_string(element)
self$get_text(self$active_module_element(element))
},
#' @description
#' Get the active shiny name space for interacting with the filter panel.
#'
#' @return (`string`) The active shiny name space of the component.
Expand Down
21 changes: 21 additions & 0 deletions man/TealAppDriver.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6779cee

Please sign in to comment.