ui.dialog
Dialog
A centred modal with backdrop, Escape and focus trap — opened with .open(), closed from any button inside it.Confirm a destructive action
The dialog is declared once; the trigger calls dialog.open() and every button inside can call dialog.close(). No state to declare.Delete “Website redesign”?
The 14 boards, 212 cards and every comment go with it. This cannot be undone.
One confirmation per row
A list on on_click runs the Python handler AND closes the dialog at once; the list re-renders when the key is gone.Revoke the Production key?
Apps using it will stop working at once.
Revoke the Staging key?
Apps using it will stop working at once.
Revoke the CI pipeline key?
Apps using it will stop working at once.
A form in a dialog
persistent=True keeps the close button but ignores Escape and the backdrop, so a stray click never loses a half-typed form. The handler receives the typed form state.Invite a teammate
Team
Owner
Widths
sm, md (the default), lg and xl.Rename the board
This dialog uses width="sm". Pick the narrowest one its content reads well in.
Share this document
This dialog uses width="md". Pick the narrowest one its content reads well in.
What's new in version 4.2
This dialog uses width="lg". Pick the narrowest one its content reads well in.
Compare the plans
This dialog uses width="xl". Pick the narrowest one its content reads well in.
An answer is required
dismissible=False removes the close button, Escape and the backdrop click: only the buttons inside can close it.Your session is about to expire
You have been inactive for 28 minutes. Unsaved changes to this invoice will be lost.