Open teto opened 1 year ago
I don't think it's a bad idea to add some default on clicks. But uses of on-click seem quite user-specific. Current way of using on-click isn't exactly hard so, for now, I'll leave it up to the users to decide what they want to do with it. If some well-accepted pattern appears as use case for this I'm open to adding that as default behavior in future.
I dont advocate to add one for every component (though having an extra feature rather than none should not be an issue from a UX perspective) but I think the "copy filename" case is quite a compelling one ? I could send PR if you agree.
Requested feature
I think it would make sense for some component to have a default on_click implementation.
Right now, I have added some code for the following components:
Feel free to close if you think it's out of scope.