darrenburns
ca17d8194e
Add docs for Pretty, fix some reference issues in docs ( #2678 )
2023-05-29 17:11:39 +01:00
Will McGugan
1ea892b062
handler name in classvar ( #2675 )
...
* handler name in classvar
* fix for worker handler name
* fix custom templates, event docs
* doc tweak
* doc tweak
* restore signature
2023-05-28 14:56:18 +01:00
Dave Pearson
658c1cdf73
Documentation punctuation change
2023-05-25 14:19:47 +01:00
Dave Pearson
93c3c3652b
Merge branch 'main' into multiselect
2023-05-25 13:59:34 +01:00
Dave Pearson
baa060f9fa
Remove annotation from RHS of the typing example
2023-05-25 13:57:08 +01:00
darrenburns
62fcefbd2d
Validation ( #2600 )
...
* A few different types of validation
* Rename
* Fix test
* Updating validation framework
* Update lockfile
* Ensure validators can be None
* Reworking the API a little
* Convert Input.Changed to dataclass
* Add utility for getting failures as strings
* Update an example in Validator docstring
* Remove some redundant `pass`es
* Renaming variables
* Validating Input on submit, attaching result to Submitted event
* Testing various validation features
* Update snapshots and deps
* Styling unfocused -invalid Input differently
* Add snapshot test around input validation and associated styles
* Validation docs
* Tidying validation docs in Input widget reference
* Fix mypy issues
* Remove __bool__ from Failure, make validator field required
* Code review changes
* Improving error messages in Validators
2023-05-25 13:29:33 +01:00
Dave Pearson
6d82d7a1db
Fix a typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-25 13:27:31 +01:00
Dave Pearson
ad4c68ba0d
Fix a typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-25 13:26:57 +01:00
Dave Pearson
34f7136f21
Fix a typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-25 13:14:27 +01:00
Dave Pearson
bec362e527
Improve the title for the widget
...
It's sort moved on from been about check boxen.
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-25 13:04:12 +01:00
Dave Pearson
4472c862be
Anticipate SelectionList making it into 0.27.0
2023-05-25 11:28:52 +01:00
Dave Pearson
9a0e82f4c3
Merge branch 'main' into multiselect
2023-05-25 10:04:52 +01:00
Dave Pearson
112f18b94d
Add SelectionList to the widget gallery
2023-05-25 09:58:43 +01:00
Dave Pearson
4ceeefba23
Remove the attempt to link to Pretty
...
Weirdly Pretty isn't in the docs. Yet.
2023-05-25 09:42:12 +01:00
Dave Pearson
02c4f4d69b
Add an example of using SelectionList.SelectedChanged
2023-05-25 09:35:37 +01:00
Dave Pearson
fe26b89803
Add some more hints about type hinting
...
Also add a couple more useful links in the area I'm editing.
2023-05-25 09:12:57 +01:00
Dave Pearson
2d544ca697
Rename the tuples selection list example to mention tuples
...
Making this one look like it was *the* canonical example wasn't a good idea.
2023-05-25 08:58:45 +01:00
Dave Pearson
a9100988b4
Make a start on the SelectionList example apps
2023-05-24 21:36:14 +01:00
Dave Pearson
718760dcb1
Fix some assorted documentation cross-references
...
Couple or so things I noticed while working on docs.
2023-05-24 15:53:56 +01:00
Dave Pearson
3e4291cf94
Remove unnecessary inclusion of Selection
...
It will be included by the nature of selection_list being included.
2023-05-24 15:31:27 +01:00
Dave Pearson
e7876ca001
Merge branch 'main' into multiselect
2023-05-24 15:29:37 +01:00
Dave Pearson
09c6ea9911
Include more missing things from the OptionList
...
While working on the SelectionList documentation I've noticed that even more
things have got lost from the docs relating to OptionList, likely lost when
widgets were removed from the API section of the docs.
This drags more OptionList-related types into the docs, thus providing more
links.
2023-05-24 15:21:41 +01:00
Dave Pearson
71d7f7dd86
Merge branch 'main' into multiselect
2023-05-24 15:08:04 +01:00
Dave Pearson
910c4782f1
Add the main framework for the OptionList documentation
...
Lots to flesh out here still, but this gets the core framework in place.
2023-05-24 15:05:10 +01:00
Dave Pearson
78980670da
Merge pull request #2640 from davep/include-option-in-docs
...
Include `widgets.option_list.Option` in the docs
2023-05-24 14:31:27 +01:00
Dave Pearson
7c9b3f4cd6
Include widgets.option_list.Option in the docs
...
Noticed this in passing; possibly dropped by accident when the widgets were
removed form the API section of the docs?
2023-05-24 14:13:17 +01:00
Dave Pearson
9459a4efd7
Merge pull request #2636 from davep/select-reactive-table-fix
2023-05-24 10:52:29 +01:00
Dave Pearson
ed0aa78f22
Merge pull request #2637 from davep/option-list-docs-typo-fix
2023-05-24 10:47:25 +01:00
Dave Pearson
7f3efcf6ed
Fix a typo in the OptionList messages list
2023-05-24 10:41:55 +01:00
Dave Pearson
7d635915fa
Fix Select reactives table layout
...
The escaped | wasn't being rendered correctly as it was inside back-ticks.
2023-05-24 10:31:34 +01:00
Rodrigo Girão Serrão
6523fbaff1
Fix tests.
2023-05-18 16:27:09 +01:00
Will McGugan
49e1080279
update howto
2023-05-18 10:03:26 +01:00
Will McGugan
8fd5aec454
fix layout
2023-05-18 09:28:33 +01:00
Will McGugan
f820598846
How to ( #2592 )
...
* words
* how to
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
---------
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-17 15:30:31 +01:00
Will McGugan
faa67a8293
Screen docs ( #2579 )
...
* screen docs
* docstrings
* modal example
* docstring
* docstrings
* Apply suggestions from code review
Co-authored-by: Dave Pearson <davep@davep.org >
---------
Co-authored-by: Dave Pearson <davep@davep.org >
2023-05-16 13:44:06 +01:00
Kim van Wyk
dea21a00ca
minor typo ( #2515 )
2023-05-08 20:01:45 +01:00
Will McGugan
cf7e8a9cb1
update roadmap
2023-05-08 18:10:40 +01:00
Will McGugan
dc102563e9
changelog and release post ( #2513 )
...
* changelog and release post
* fix version
* link Select
* remove superfluous css
* Update docs/blog/posts/release2-24-0.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
* Update docs/blog/posts/release2-24-0.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
---------
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2023-05-08 17:45:06 +01:00
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
Rodrigo Girão Serrão
8059e5c1a7
Merge branch 'main' into messages-control
2023-05-08 11:18:43 +01:00
Will McGugan
7db7139bb8
Select widget ( #2501 )
...
* overlay rule
* select WIP
* select control, made binding description optional
* changelog
* style tweak
* Added constrain
* changelog
* test fix
* drop markup, tidy
* tidy
* select namespace
* tests
* docs
* Added changed event
* changelog
* expanded
* tests and snapshits
* examples and docs
* simplify
* update reactive attributes
* type fix
* docstrings
* allow renderables
* superfluous init
* typing fix
* optimization
* revert optimizations
* fixed words
* changelog
* docstrings
* don't need this
* changelog
* comment
* Update docs/widgets/select.md
Co-authored-by: Dave Pearson <davep@davep.org >
* review changes
* review updates
---------
Co-authored-by: Dave Pearson <davep@davep.org >
2023-05-08 10:55:39 +01:00
Dave Pearson
8be87d5931
Merge branch 'main' into add-options
2023-05-07 18:06:57 +01:00
Dave Pearson
630f59dbd4
Remove unnecessary imports from example in docs
...
Perhaps a hangover from a previous take on this, or just a copy/paste-o.
Either way I just noticed this so thought I'd roll it in here.
2023-05-07 17:52:55 +01:00
Rodrigo Girão Serrão
14b70b0819
Add control to option list messages.
2023-05-04 18:53:29 +01:00
Rodrigo Girão Serrão
c4eda48a0a
Tweaks to DataTable docs. ( #2481 )
...
* Tweaks to DataTable docs.
Related PRs: #2479 .
* Fix link.
2023-05-04 14:55:14 +01:00
Will McGugan
e5c54a3683
blog post ( #2465 )
...
* blog posts
* fix typo
* word
* version bump
* changelog
* update words
2023-05-03 13:22:22 +01:00
Will McGugan
aedac6a9b9
update roadmap
2023-05-02 16:20:16 +01:00
Will McGugan
91a9d570a4
On decorator ( #2453 )
...
* Add on decorator
* decorator code
* docs for on decorator
* Examples
* test errors
* simplify listing
* words
* changelog
* Update docs/guide/events.md
Co-authored-by: Dave Pearson <davep@davep.org >
* Update docs/guide/events.md
Co-authored-by: Dave Pearson <davep@davep.org >
* Update docs/examples/events/on_decorator.css
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Update docs/guide/events.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* rewording
* comment
* clarification
* Added note
---------
Co-authored-by: Dave Pearson <davep@davep.org >
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-05-02 16:17:40 +01:00
Rodrigo Girão Serrão
914e50a70f
Export types & doc improvements ( #2329 )
...
* Export types used in app.py
* Export more linked types/errors/classes.
* Remove custom template.
* Address review comments.
We need to have explicit 'Returns:' sections in properties if we want to link to the return type while https://github.com/mkdocstrings/python/issues/65 is open.
* Improve docs.
2023-05-02 15:12:53 +01:00
Will McGugan
e1a8f28f8d
update to log docs ( #2451 )
2023-05-02 10:09:32 +01:00