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."""
|
"""bool: Check if the node is allowed to expand."""
|
||||||
return self._allow_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(
|
def add(
|
||||||
self,
|
self,
|
||||||
label: TextType,
|
label: TextType,
|
||||||
|
|||||||
Reference in New Issue
Block a user