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

[Tree] Add label property that calls set_label #1396

Closed
davep opened this issue Dec 19, 2022 · 1 comment · Fixed by #1487
Closed

[Tree] Add label property that calls set_label #1396

davep opened this issue Dec 19, 2022 · 1 comment · Fixed by #1487
Assignees
Labels
enhancement New feature or request

Comments

@davep
Copy link
Contributor

davep commented Dec 19, 2022

It would be really helpful to have a TreeNode.label property so that code that's potentially unrelated to what build a Tree can access a node's label for display elsewhere.

@davep davep added the enhancement New feature or request label Dec 19, 2022
@willmcgugan willmcgugan changed the title Consider making label a public property of TreeNode [Tree] Add label property that calls set_label Jan 4, 2023
@davep davep self-assigned this Jan 5, 2023
@Textualize Textualize deleted a comment from github-actions bot Jan 5, 2023
davep added a commit to davep/textual that referenced this issue Jan 5, 2023
This adds public support to reading a TreeNode's label, and also setting it
too.

See Textualize#1396.
@davep davep linked a pull request Jan 5, 2023 that will close this issue
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant