Skip to content
New issue

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

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

Already on GitHub? # to your account

custom.css example? #21

Closed
ldecicco-USGS opened this issue Jul 10, 2018 · 4 comments
Closed

custom.css example? #21

ldecicco-USGS opened this issue Jul 10, 2018 · 4 comments

Comments

@ldecicco-USGS
Copy link

I have a graph that is really tall. I'd like to move the spinner to the top instead of the center (it gets lost in the center). I've tried:

withSpinner(plotOutput("endpointGraph", height = height, width = "100%"),
                     custom.css = "vertical-align:top")

and

withSpinner(plotOutput("endpointGraph", height = height, width = "100%"),
                     custom.css = "vertical-align: top;")

But that gives me an error "invalid argument type". Do you have any examples of how to use the custom.css argument?

@trafficonese
Copy link

Try with this:

withSpinner(plotOutput(outputId = "distPlot"), custom.css = "vertical-align: top; top: 0%;")

Or just custom.css = "top: 0%;" should be fine too.

@tonyk7440
Copy link

Getting this error also with:

withSpinner(imageOutput(outputId = "wordcloud"), custom.css = "top: 0%;")

Error:
Warning: Error in !: invalid argument type 73: withSpinner

@emmacooperpeterson
Copy link

I'd also love to see an example of how to use custom.css – can't seem to get anything to work 😞 @andrewsali

@daattali
Copy link
Owner

daattali commented May 3, 2020

The custom.css option takes a TRUE or FALSE, just to tell the package if to add its own CSS or not.

The actual CSS you want to add needs to go in your app's ui. The function now accepts an id parameter so that you can target specific spinners in your CSS

@daattali daattali closed this as completed May 3, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants