Slider size #1973
Answered
by
mturoci
LaurenedePeyrelongue
asked this question in
Q&A
Slider size
#1973
-
Beta Was this translation helpful? Give feedback.
Answered by
mturoci
May 12, 2023
Replies: 1 comment 1 reply
-
This is a bug on Wave side. Thanks for reporting! As a workaround, you can use # Form / Slider
# Use a #slider to allow users to set a value within a specific range.
# #form
# ---
from h2o_wave import main, app, Q, ui
@app('/demo')
async def serve(q: Q):
q.page['example'] = ui.form_card(box='1 1 4 5', items=[
ui.inline(items=[
ui.slider(name='slider', label='Standard slider', min=0, max=100, step=10, value=30, width='100%'),
ui.slider(name='slider_zero', label='Origin from zero', min=-10, max=10, step=1, value=-3, width='100%'),
ui.slider(name='slider_disabled', label='Disabled slider', min=0, max=100, step=10, value=30,
disabled=True, width='100%'),
]),
])
await q.page.save() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LaurenedePeyrelongue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bug on Wave side. Thanks for reporting! As a workaround, you can use
width
attribute to set the size you want explicitly. E.g.