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

Can I ues widgets attribute id? #4991

Closed
Yurii-huang opened this issue Sep 12, 2024 · 2 comments
Closed

Can I ues widgets attribute id? #4991

Yurii-huang opened this issue Sep 12, 2024 · 2 comments

Comments

@Yurii-huang
Copy link

Can I ask you a few more questions? When clicking, I would like to update the letter V by distinguishing the ID and clicking it like a checkbox to use the editor. By removing V if it exists.
def _on_cell_selected(self, event:DataTable.CellSelected):
The value of was empty. Is there a value that can be used to process the branch when clicked?editor.event.data_table.id
image

It's best not to use a value of type id, this value should be used by the framework. While the DataView itself is an object, you can declare any attribute(member) from python

be used from "Widget", same of DOMNode
image

Originally posted by @Yurii-huang in #4539 (comment)

@Yurii-huang Yurii-huang changed the title Can I ues widgets attribute? Can I ues widgets attribute id? Sep 12, 2024
Copy link

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

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

No branches or pull requests

1 participant