Releases: PaleNeutron/streamlit-ext
Releases · PaleNeutron/streamlit-ext
v0.1.10
v0.1.9
Fix bug for pandas>2.0
v0.1.8
Bug fix for streamlit
> 1.26.0
v0.1.7
Update to streamlit 1.20
v0.1.6
Adapt to streamlit version 1.19.0
v0.1.5
Add Class steDownloadButton
to a
tag and stDownloadButton
to div
tag wrapped a
.
So users can now write custom css points to download button see this example:
import numpy as np
import pandas as pd
import streamlit as st
import streamlit_ext as ste
df = pd.DataFrame(np.random.rand(10, 5))
ste.download_button("Click to download data!", df, "YOUR_DF.xlsx")
ste.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")
st.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")
st.markdown(
"""
<style>
div.stDownloadButton > button,
div.stDownloadButton > a {
background-color: #000000 !important;
color:#ffffff !important;
}
div.stDownloadButton > button:hover,
div.stDownloadButton > a:hover {
background-color: #000000 !important;
color:#ff0000 !important;
}
</style>""",
unsafe_allow_html=True,
)
v0.1.4
- Change
ste.download_button
's parameter name to the same asst.download_button
- Add support for
pd.Dataframe().style
toste.download_button
v0.1.3
- Add support for sidebar, use it by
ste.sidebar.checkbox
just like in streamlit - Fix bug when passing dict.keys() as options
v0.1.2
- Fix
pd.DataFrame
download bug ifopenpyxl
not installed
v0.1.1
- Fix synced widget do not change on first time click after streamlit start