Will McGugan
2244b1161e
api docs ( #2240 )
...
* api docs
* more docstrings
* logs
* docs shakeup
* fix notes, added intro to all apis
* Remove defaults to
* add note to events
* note
* use fira code
2023-04-08 15:35:49 +01:00
Rodrigo Girão Serrão
d787f61090
State version of widget addition in docs. ( #2144 )
...
* State version of widget addition in docs.
Related issues: #2133
* Fix ListX version info.
* Retroactively update changelog.
2023-03-27 22:32:18 +01:00
Will McGugan
f5e779c4c4
tabbed content widget ( #2059 )
...
* tabbed content widget
* TabbedContent widget and docs
* missing docs
* fix active
* doc fix
* test fix
* additional test
* test for render_str
* docstring
* changelog
* doc update
* changelog
* fix bad optimization
* Update docs/widgets/tabbed_content.md
Co-authored-by: Dave Pearson <davep@davep.org >
* fix for empty initial
* docstrings
* Update src/textual/widgets/_content_switcher.py
Co-authored-by: Dave Pearson <davep@davep.org >
* docstring
* remove log
* permit nested tabs
* renamed TabsCleared to Cleared
* added tests, fix types on click
* tests
* fix broken test
* fix for nested tabs
---------
Co-authored-by: Dave Pearson <davep@davep.org >
2023-03-18 10:38:41 +00:00
Will McGugan
b0f5c35782
tabs widget ( #2020 )
...
* tabs widget
* click underline
* color tweak
* docs
* docs update
* expose Tab
* added remove_tab and clear
* fix cycling
* add animation
* docs
* changelog
* remove recompose
* docstrings
* Update docs/guide/actions.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Rodrigoed the tabs
* Update docs/widgets/tabs.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Update docs/widgets/tabs.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* copy
* docstrings
* docstring
* docstring
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* stop click
* docstring
* auto assign consistent IDs
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Document bindings
* document bindings
* 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-03-13 14:39:15 +00:00
Dave Pearson
b5c028c36d
Fix a docstring typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-27 13:35:33 +00:00
Dave Pearson
4f75a395d8
Fix copy/paste-o in the checkbox reference
2023-02-23 14:35:24 +00:00
Dave Pearson
3fd3d272ce
Add the widget reference for Checkbox
2023-02-23 14:26:11 +00:00
Dave Pearson
decc1e2f3c
Rename Checkbox to Switch
...
A new form of Checkbox will be arriving in Textual soon, working in
conjunction with a RadioButton. What was called Checkbox is perhaps a wee
bit heavyweight in terms of visual design, but is a style of widget that
should remain.
With this in mind we're renaming the current Checkbox to Switch. In all
other respects its workings remains the same, only the name has changed.
Things for people to watch out for:
- Imports will need to be updated.
- Queries will need to be updated; special attention will need to be paid to
any queries that are string-based.
- CSS will need to be changed if any Checkbox styling is happening, or if
any Checkbox component styles are being used.
See #1725 as the initial motivation and #1746 as the issue for this
particular change.
2023-02-09 11:10:30 +00:00
Rodrigo Girão Serrão
b37517c400
Add all messages to widget references.
2023-01-26 11:53:51 +00:00
Rodrigo Girão Serrão
ef779d71dd
Add bindings and component classes to reference pages.
2023-01-25 15:19:16 +00:00
Rodrigo Girão Serrão
196d430582
Style all Textual CSS as 'sass'
...
Textual CSS is better highlighted in SASS code blocks because the SASS parser seems to be more lenient.
2023-01-09 11:20:04 +00:00
Will McGugan
a46eda2fa0
Added blog
2022-11-06 15:41:12 +00:00
darrenburns
4a0dc49bca
Checkbox polishing + fix auto-width in Horizontal layout ( #942 )
...
* checkbox widget
* fixes
* Checkbox additions, fix content width in horizontal layout
* Update docs, add tests for checkbox
* Remove some test code
* Small renaming of test class
Co-authored-by: Will McGugan <willmcgugan@gmail.com >
2022-10-18 15:17:44 +01:00