Skip to content

Comments

Give users the option to hide the "X" close button with argument show_close_button#21

Open
PetervanLunteren wants to merge 7 commits intoteamtv:mainfrom
PetervanLunteren:main
Open

Give users the option to hide the "X" close button with argument show_close_button#21
PetervanLunteren wants to merge 7 commits intoteamtv:mainfrom
PetervanLunteren:main

Conversation

@PetervanLunteren
Copy link

Thanks for this! Its almost exactly what I need.

This PR added a show_close_button parameter to the Modal class to allow toggling the visibility of the close ("X") button. The button now only renders if show_close_button=True (default behaviour). This gives developers more control over modal closing behavior. In my use case, I want to disable the "X" button so users can only close the modal via a custom button with additional explanation.

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.

1 participant