Rodrigo Girão Serrão
855c90d4f0
Extend @on decorator to filter matchable attributes (#2498)
* Add tests for #2484.
* Implement @on extension.
[skip ci]
Related issues: #2484.
* Changelog.
* Add missing @on test.
* Remove debug prints.
* Document changes.
* Update tests.
Test now fully works, as of #2490.
* Cache parsed selectors.
* Streamline exit condition.
* Fix typing.
* More succint wording.
* Document 'on' kwargs.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Update docs/guide/events.md
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Change 'on' API.
* Remove example code.
* Address feedback.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Address review feedback.
* Fix #2499.
* don't require control to be manually specified
* update docstring
* deleted words
---------
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2023-05-08 17:30:07 +01:00
..
2022-04-19 13:56:19 +01:00
2023-05-01 16:22:35 +01:00
2023-04-20 17:09:39 +01:00
2023-02-09 13:28:08 +00:00
2023-02-09 13:28:08 +00:00
2023-04-13 15:32:56 +01:00
2023-05-07 18:01:56 +01:00
2023-04-26 15:25:39 +01:00
2023-05-08 10:55:39 +01:00
2023-05-04 16:43:20 +01:00
2023-05-08 09:55:32 +01:00
2023-04-24 11:21:38 +01:00
2021-07-05 20:37:54 +01:00
2023-03-23 15:54:06 +00:00
2023-04-24 11:21:38 +01:00
2023-02-09 13:28:08 +00:00
2023-04-18 11:36:00 +01:00
2023-03-28 15:27:01 +01:00
2022-10-29 10:03:26 +01:00
2023-04-20 10:04:32 +01:00
2023-05-08 10:55:39 +01:00
2023-04-16 12:31:39 +01:00
2023-04-06 17:30:32 +01:00
2023-04-18 11:36:00 +01:00
2023-04-24 09:33:15 +01:00
2021-08-31 17:53:41 +01:00
2023-04-09 18:07:42 +01:00
2022-05-10 17:37:27 +01:00
2023-02-09 13:28:08 +00:00
2023-03-09 15:38:31 +00:00
2023-03-09 11:39:30 +00:00
2023-01-26 16:10:13 +01:00
2023-05-08 10:44:34 +01:00
2023-03-08 18:31:24 +00:00
2023-03-28 15:45:40 +01:00
2022-10-13 11:15:15 +01:00
2022-10-22 17:35:11 +01:00
2023-03-08 18:31:24 +00:00
2023-01-19 14:18:40 +00:00
2023-05-08 10:55:39 +01:00
2023-02-09 13:28:08 +00:00
2023-01-17 15:19:40 +00:00
2022-10-13 11:15:15 +01:00
2023-04-19 13:24:31 +01:00
2023-02-09 13:28:08 +00:00
2023-03-13 15:14:12 +00:00
2023-03-06 10:52:34 +00:00
2023-02-09 13:28:08 +00:00
2023-05-08 17:30:07 +01:00
2023-03-08 18:31:24 +00:00
2022-06-17 15:35:20 +01:00
2022-07-29 10:28:50 +01:00
2023-03-06 10:52:34 +00:00
2023-02-09 13:28:08 +00:00
2023-03-13 14:11:33 +00:00
2022-11-25 18:23:24 +00:00
2023-04-26 15:25:39 +01:00
2023-03-28 15:45:40 +01:00
2023-05-01 16:57:40 +01:00
2023-04-27 13:35:16 +01:00
2023-04-04 13:12:51 +01:00
2023-02-09 13:28:08 +00:00
2023-05-08 10:55:39 +01:00
2023-04-19 13:24:31 +01:00
2023-05-02 09:36:08 +01:00
2023-01-17 10:29:19 +00:00
2023-04-16 12:31:39 +01:00
2022-05-03 15:40:06 +01:00
2023-04-22 08:42:38 +01:00
2023-02-09 13:28:08 +00:00
2023-02-09 11:16:14 +00:00
2023-02-13 15:09:40 +00:00
2023-01-18 14:51:50 +00:00
2023-03-08 18:31:24 +00:00
2023-02-13 15:09:40 +00:00
2023-02-13 15:09:40 +00:00
2023-02-13 15:09:40 +00:00
2023-02-13 15:09:40 +00:00
2023-03-28 14:26:24 +01:00
2023-04-04 13:12:51 +01:00
2023-04-04 13:12:51 +01:00
2023-04-04 13:12:51 +01:00
2023-03-06 10:52:34 +00:00