A quiet way out, and the destructive action said in red.
Delete this project?
The 14 boards and their history go with it. This cannot be undone.
defform_footer()->None:withui.card(padding="md",classes="w-full max-w-lg"),ui.vstack(gap="md"):withui.vstack(gap="xs"):ui.heading("Delete this project?",level=3,size="md")ui.text("The 14 boards and their history go with it. ""This cannot be undone.",color="muted",size="sm")withui.hstack(gap="sm",justify="end"):ui.button("Cancel",variant="ghost")ui.button("Delete project",color="error",icon_left="trash-2")
A click that runs Python
on_click takes a Python function. The state changes on the server, and only the zone that reads it is re-rendered.
defstates()->None:withui.hstack(gap="sm",wrap=True,justify="center"):ui.button("Saving…",loading=True)ui.button("Unavailable",disabled=True)ui.button("Read the docs",href="https://docs.bretzel-py.dev",external=True,variant="outline",icon_right="external-link")