mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add allow
This commit is contained in:
@@ -166,6 +166,11 @@ class TreeNode(Generic[TreeDataType]):
|
||||
"""bool: Check if the node is allowed to expand."""
|
||||
return self._allow_expand
|
||||
|
||||
@allow_expand.setter
|
||||
def allow_expand(self, allow_expand: bool) -> bool:
|
||||
self._allow_expand = allow_expand
|
||||
self._updates += 1
|
||||
|
||||
def add(
|
||||
self,
|
||||
label: TextType,
|
||||
|
||||
Reference in New Issue
Block a user