Skip to content

Slider size #1973

May 11, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

# 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'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LaurenedePeyrelongue
Comment options

Answer selected by LaurenedePeyrelongue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants