I have my Shiny bsModal setup as so:
# ui.R
bsModal("test_events_modal", htmlOutput("modal_title"), trigger='dummy', size = "large",
div(dataTableOutput("current_test_events_dt"), style = "font-size:90%;width:95%")
)
# server.R
modal_title = glue('EVENT HISTORY: {selected_flow_context}')
output$modal_title <- renderUI({ span(tagList(icon("timeline"), modal_title)) })
toggleModal(session, 'test_events_modal', toggle = "toggle")
This produces:
I would like the title text to be left aligned and would like to remove the annoying and redundant 'x' widget as the bsModal object has a close button.
thx

We can use htmltools::tagQuery to achive this.
As your code isn't reproducible I've adapted this example: