Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "sealed containers" #2210

Closed
davep opened this issue Apr 3, 2023 · 2 comments
Closed

Add support for "sealed containers" #2210

davep opened this issue Apr 3, 2023 · 2 comments
Labels
enhancement New feature or request Task

Comments

@davep
Copy link
Contributor

davep commented Apr 3, 2023

Prompted by this conversation, and the need to do this in a couple or so widgets, it would make sense to have a way of having a container of widgets such that the contents are projected from external changes to the DOM. A classic example being the ListView where someone could mount something that isn't a ListItem, or RadioSet where someone could do the same, or remove a RadioButton or two. This is generally going to be an issue for any sort of compound widget.

Which such widgets can advertise that changing up their content like this could lead to unintended consequences, it would be ideal if there was a way of protecting the widget's content.

@willmcgugan
Copy link
Collaborator

On reflection, I think this might prevent customization. It is often inadvisable if you didn't write the widget yourself, but I don't want to restrict it.

@willmcgugan willmcgugan closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

No branches or pull requests

2 participants