Skip to content

Commit

Permalink
Version 2.5.3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-cserrano committed Dec 22, 2023
1 parent a30e968 commit 7e3ac1a
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 106 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="streamlit_vertical_slider",
version="2.5.0",
version="2.5.3",
author="Carlos D. Serrano",
author_email="[email protected]",
description="Creates a customizable vertical slider",
Expand Down
207 changes: 103 additions & 104 deletions streamlit_vertical_slider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,107 +90,106 @@ def vertical_slider(
st.set_page_config(layout="wide")
st.subheader("Vertical Slider")

bottom_cols = st.columns(15)
with bottom_cols[0]:
tst = vertical_slider(
label="Default Style",
height=200,
key="test_0",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)


with bottom_cols[1]:
tst = vertical_slider(
label="Default Style + Always Visible",
height=200,
key="test_1",
default_value=550,
thumb_shape="circle",
step=1,
min_value=0,
max_value=1500,
value_always_visible=True,
)

with bottom_cols[2]:
tst = vertical_slider(
label="Pill Shaped",
height=200,
key="test_2",
default_value=550,
thumb_shape="pill",
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[3]:
tst = vertical_slider(
label="Square Shaped",
height=200,
key="test_3",
default_value=550,
thumb_shape="square",
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[4]:
tst = vertical_slider(
label="Custom Colors",
thumb_color="Red",
track_color="gray",
slider_color="orange",
height=200,
key="test_4",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[5]:
tst = vertical_slider(
label="Height Control",
height=400,
key="test_5",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[6]:
tst = vertical_slider(
height=400,
key="test_6",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)
with bottom_cols[7]:
flt_tst = vertical_slider(
label="Gradient",
thumb_color="Red",
track_color="gray",
slider_color=("blue", "red"),
height=200,
key="test_gradient",
default_value=150.098,
step=0.09,
min_value=0,
max_value=25.500,
value_always_visible=False,
)
bottom_cols = st.columns(15)
with bottom_cols[0]:
tst = vertical_slider(
label="Default Style",
height=200,
key="test_0",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[1]:
tst = vertical_slider(
label="Default Style + Always Visible",
height=200,
key="test_1",
default_value=550,
thumb_shape="circle",
step=1,
min_value=0,
max_value=1500,
value_always_visible=True,
)

with bottom_cols[2]:
tst = vertical_slider(
label="Pill Shaped",
height=200,
key="test_2",
default_value=550,
thumb_shape="pill",
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[3]:
tst = vertical_slider(
label="Square Shaped",
height=200,
key="test_3",
default_value=550,
thumb_shape="square",
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[4]:
tst = vertical_slider(
label="Custom Colors",
thumb_color="Red",
track_color="gray",
slider_color="orange",
height=200,
key="test_4",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[5]:
tst = vertical_slider(
label="Height Control",
height=400,
key="test_5",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)

with bottom_cols[6]:
tst = vertical_slider(
height=400,
key="test_6",
default_value=550,
step=1,
min_value=0,
max_value=1500,
value_always_visible=False,
)
with bottom_cols[7]:
flt_tst = vertical_slider(
label="Gradient",
thumb_color="Red",
track_color="gray",
slider_color=("blue", "red"),
height=200,
key="test_gradient",
default_value=150.098,
step=0.09,
min_value=0,
max_value=25.500,
value_always_visible=False,
)
2 changes: 1 addition & 1 deletion streamlit_vertical_slider/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamlit_vertical_slider",
"version": "2.0.2",
"version": "2.5.2",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down

0 comments on commit 7e3ac1a

Please sign in to comment.