Closed norbusan closed 6 months ago
The image parameter is not optional.
But it can be, we just need the implementation
Hi @gamcoh ahhh, not optional ... you might want to update the documentation: https://github.com/gamcoh/st-card/blob/main/streamlit_card/__init__.py#L37 ;-)
I think a simple (- though don't ask me for javascript code) check for whether the image parameter is null, and then not adding the url stuff in the div
should work.
Although not at all a JS guy, I might look into it.
Not really a TS/JS person either, however, happy to have a look as well.
I set the image to something blank. I used:
image = "https://upload.wikimedia.org/wikipedia/en/4/48/Blank.JPG"
Hey @norbusan CC @gamcoh - I noticed the same error yesterday when omitting a background image - I've attempted to address this part of the issue here: #27.
The documentation says that the image parameter is optional, but if I don't pass it, I get warning messages:
In fact, what I would like to see is that one can just give a color for the background, and no image is needed.
Is this possible?
Thanks for providing this widget!