Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$active_module_element_text method TealAppDriver #1167

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading