I'm trying to add a textOutput to my modalDialog and it isn't working. Any help would be appreciated. I realize this isn't a working example but the app is insanely massive and I'm running out of time to create a mini example. I'm also fairly inexperienced with modalDialog. Everything works as planned except the textOutput - it simply doesn't show.
library(tibble)
library(dplyr)
library(lubridate)
library(tidyr)
library(DT)
library(digest)
library(DBI)
library(shinyjs)
library(highcharter)
library(pool) #devtools::install_github("rstudio/pool")
library(shinyFeedback)
library(summaryrow)
showModal(
modalDialog(
fluidRow(
column(
width = 3,
h1("Expense"),
numericInput(
inputId = ns("payment_expense_a"),
label = "Expense Payment by A",
value = 0
),
numericInput(
inputId = ns("payment_expense_b"),
label = "Expense Payment by B",
value = 0
),
h4(
textOutput("attorney_paid_total") #This is sum of A and B payments
)
)
...
)
)
)
...
output$attorney_paid_total <- renderText({
paste0("Total Attorney Paid: XXX") #This will be reactive
})
...
Thank you.