h2oai / nitro

Create apps 10x quicker, without Javascript/HTML/CSS.
https://nitro.h2o.ai
Apache License 2.0
201 stars 13 forks source link

Mode "multi live menu" does not block UI #99

Closed lo5 closed 1 year ago

lo5 commented 1 year ago

Bug: busy overlay does not cover entire page, so page-bottom areas remain interactive.

lo5 commented 1 year ago

Related:

    ret = view(
        "Do you see any predictors here that shouldn't be included or are too important given",
        box(
            options=[option('a'), option('b'), option('c'), option('d')],
            value=['a'],
            help='this is help',
            mode="check live multi",
        ),
        box(
            "all other columns",
            options=[option('p'), option('q'), option('r'), option('s')],
            mode="menu live",
        ),
        box(
            [
                option(
                    "ok",
                    "I like these predictors.",
                    caption="Variable importances look fine",
                    selected=True,
                ),
                option(
                    "reset",
                    "Reset dropped columns.",
                    caption="Go back to where we started",
                ),
            ],
            mode="button",
        ),
    )
    print(ret)

Output:

(['a', 'b'], None, None)
(['a', 'd'], None, None)
(['a'], 's', None)
(['a'], None, 'reset')
(['a'], 's', None)