Skip to content

Commit a5c9d30

Browse files
committed
✨ Add features module to inequalities
1 parent a7edaed commit a5c9d30

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

R/mod_inequalities_server.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ mod_inequalities_server <- function(id, params) {
55
shiny::moduleServer(id, function(input, output, session) {
66
ns <- session$ns
77

8+
mod_reasons_server(shiny::NS(id, "reasons"), params, "inequalities")
9+
810
inequalities_data <- shiny::reactive({
911
dataset <- shiny::req(params$dataset) # nolint: object_usage_linter
1012

R/mod_inequalities_ui.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ mod_inequalities_ui <- function(id) {
1212
shiny::tagList(
1313
shiny::tags$h1("Inequalities"),
1414
shiny::fluidRow(
15+
col_4(
1516
bs4Dash::box(
1617
collapsible = FALSE,
1718
headerBorder = FALSE,
18-
width = 4,
19+
width = 12,
1920
md_file_to_html("app", "text", "inequalities.md")
2021
),
22+
mod_reasons_ui(ns("reasons"))
23+
),
24+
col_8(
2125
bs4Dash::box(
2226
collapsible = FALSE,
2327
headerBorder = FALSE,
24-
width = 8,
28+
width = 12,
2529
div(
2630
shiny::downloadButton(
2731
ns("download_inequalities"),
@@ -32,6 +36,7 @@ mod_inequalities_ui <- function(id) {
3236
),
3337
DT::dataTableOutput(ns("hrg_table"), height = "calc(100vh - 200px)")
3438
)
39+
)
3540
)
3641
)
3742
}

0 commit comments

Comments
 (0)