Shinyjs hidden toggle in the signature_module script does not seem to work when a row is selected. The intended behavior is to have the action buttons hidden until the user selects a row.
reference:
`
h4(shiny::textOutput(ns("selected_signature_label"))),
shiny::div(
id = ns("action_buttons_group_toggle"),
style = "display: none;", # Initial state is hidden
shiny::actionButton(ns("view_btn"), "View"),
shiny::actionButton(ns("update_btn"), "Update"),
shiny::actionButton(ns("delete_btn"), "Delete"),
shiny::actionButton(ns("access_btn"), "Access"),
shiny::downloadButton(ns("download_btn"), "Download")
),`
this is in the signature module server logic to toggle visibility
`
observeEvent(input$signature_tbl_rows_selected, {
df <- signature_db()
row <- input$signature_tbl_rows_selected
sig <- df[row,]
selected_sig(sig)
# shinyjs::toggle(ns("action_buttons_group"))
output$selected_signature_label <- renderText({
sprintf("Actions for: %s", sig$signature_name)
})
})`
Shinyjs hidden toggle in the signature_module script does not seem to work when a row is selected. The intended behavior is to have the action buttons hidden until the user selects a row.
reference:
`
h4(shiny::textOutput(ns("selected_signature_label"))),
this is in the signature module server logic to toggle visibility
`
observeEvent(input$signature_tbl_rows_selected, {
})`