Skip to content
Discussion options

You must be logged in to vote

Hi @nils-ossenbrink ,

Do you mean something like this?

from nicegui import ui


def mix():
    # Change icon here
    ingredients.props('active-icon="warning" active-color="red" done-icon="warning" done-color="red"')
    mix_label.set_text('Sorry! Mixing failed')
    mix_label.classes('text-red')

with ui.stepper().props('vertical').classes('w-full') as stepper:
    with ui.step('Preheat'):
        ui.label('Preheat the oven to 350 degrees')
        with ui.stepper_navigation():
            ui.button('Next', on_click=stepper.next)
    with ui.step('Ingredients') as ingredients:
        mix_label = ui.label('Mix the ingredients')
        with ui.stepper_navigation():
            ui.button('…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nils-ossenbrink
Comment options

Answer selected by nils-ossenbrink
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