Skip to content

Dialog - optional modal mode#542

Merged
axadrn merged 7 commits intotemplui:mainfrom
BillBuilt:dialog-optional-modal-mode
Apr 15, 2026
Merged

Dialog - optional modal mode#542
axadrn merged 7 commits intotemplui:mainfrom
BillBuilt:dialog-optional-modal-mode

Conversation

@BillBuilt
Copy link
Copy Markdown
Contributor

@BillBuilt BillBuilt commented Apr 4, 2026

This adds a new dialog.ContentProps field: ShowModal *bool (default true) to allow disabling of the dialog element's backdrop in cases where it needs to be hidden (example: it covers other popup elements used by the dialog's contents)

Closes: #541

image

@axadrn axadrn merged commit f4feaee into templui:main Apr 15, 2026
@axadrn
Copy link
Copy Markdown
Member

axadrn commented Apr 15, 2026

Thanks! Pushed a follow-up commit: replaced ShowModal *bool with DisableModal bool to keep it consistent with the existing DisableClickAway/DisableESC API, removed the *bool pointer workaround in the showcase, fixed the missing TOC entry, and registered the showcase in render-showcases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Make dialog modal optional

2 participants