h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.96k stars 327 forks source link

Component Enhancement: inline justify #968

Closed mtanco closed 3 years ago

mtanco commented 3 years ago

MLOps project card: image image

page["project_2"] = ui.form_card(
    box="projects",
    items=[
        ui.text_xl("Project Name 2"),
        ui.inline(
            items=[
                ui.text("Owner: michelle@h2o.ai"),
                ui.text("Wed Aug 18 15:09:35 PDT 2021")
            ],
            justify="justify"  # functionality missing - we want these items to be at the start and end of the width
        ),
...
)

Today the only justify options for ui.inline are start and end. We would like to include a justify option which would be the equivalent to how text is shown in a newspaper - have items and the start and end, and equally spread in the middle as needed.

https://xd.adobe.com/view/eebb600c-026b-4ca1-bb6b-0a439235452b-bbe8/specs/

mturoci commented 3 years ago

Duplicate of #534