Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding feedback vis shinyfeedback messes up the layout #9

Closed
Martin-Jung opened this issue Mar 24, 2024 · 1 comment
Closed

Adding feedback vis shinyfeedback messes up the layout #9

Martin-Jung opened this issue Mar 24, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Martin-Jung
Copy link
Collaborator

shinyfeedback can be used to highlight mandatory and optional fields.
However the respective package to do so messes up the format of bs4Dash horribly.
Thus currently running on a backup solution.

This code for example does not work.

    shiny::observeEvent(input$studyname, {
      if(input$studyname=="") {
        shinyFeedback::showFeedback(
          "studyname",
          text = "This field is mandatory",
          color = "#d9534f",
          icon = shiny::icon("exclamation-sign", lib="glyphicon")
        )
      } else {
        shinyFeedback::hideFeedback("studyname")
      }
    })

@Martin-Jung Martin-Jung added bug Something isn't working help wanted Extra attention is needed labels Mar 24, 2024
@Martin-Jung
Copy link
Collaborator Author

Layout issues seem to popup only when condition is true during initialization.
Feedback now only added in response to added estimates for selected fields...

@Martin-Jung Martin-Jung closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant