-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0e4bec
commit 497bc29
Showing
4 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#' run_button UI Function | ||
#' | ||
#' @description A shiny Module. | ||
#' | ||
#' @param id,input,output,session Internal parameters for {shiny}. | ||
#' | ||
#' @noRd | ||
#' | ||
#' @importFrom shiny NS tagList | ||
mod_run_button_ui <- function(id){ | ||
ns <- NS(id) | ||
tagList( | ||
actionButton(ns("run_button"), "Run") | ||
) | ||
} | ||
|
||
#' run_button Server Functions | ||
#' | ||
#' @noRd | ||
mod_run_button_server <- function(id){ | ||
moduleServer( id, function(input, output, session){ | ||
ns <- session$ns | ||
|
||
return(reactive(input$run_button)) | ||
|
||
}) | ||
} | ||
|
||
## To be copied in the UI | ||
# mod_run_button_ui("run_button_1") | ||
|
||
## To be copied in the server | ||
# mod_run_button_server("run_button_1") |