Skip to content

stepper_navigation behavior #3234

Closed Answered by python-and-fiction
pierrecdn asked this question in Q&A
Discussion options

You must be logged in to vote

In nicegui 1.4.28, following code could show what you say:

from nicegui import ui

with ui.card().classes('w-full'):
    with ui.stepper().props('vertical') as stepper:
        with ui.step('1'):
            ui.label('step 1')
        with ui.step('2'):
            ui.label('step 1')
        with ui.step('3'):
            ui.label('step 1')
    with ui.row():
            ui.button('Next', on_click=stepper.next).bind_visibility_from(stepper,'value',backward=lambda x:x!='3')
            ui.button('Done',color='green', on_click=lambda :ui.notify(stepper.value)).bind_visibility_from(stepper,'value',backward=lambda x:x=='3')
            ui.button('Back', on_click=stepper.previous).props('flat').

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pierrecdn
Comment options

@falkoschindler
Comment options

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