Dave Pearson
6d0fc0489f
Rework the layout of the checkbox example
...
Time to start to show off the new compose method.
2023-02-27 09:11:18 +00:00
Dave Pearson
23c0587efb
Rework the layout of the radio button example
...
Time to start to show off the new compose method.
2023-02-27 09:10:10 +00:00
Dave Pearson
f436489efa
Rework the layout of the radio set example
...
Time to start to show off the new compose method.
2023-02-27 09:08:40 +00:00
Dave Pearson
e6e46d0825
Merge branch 'main' into toggle-boxen
2023-02-27 08:53:30 +00:00
Will McGugan
9c1f6f7fad
Added docs for the new compose method
2023-02-26 10:34:30 +00:00
Will McGugan
63438f170d
Update docs/examples/events/prevent.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:02:56 +00:00
Will McGugan
217956bbdf
Update docs/examples/events/prevent.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-02-24 12:02:46 +00:00
Dave Pearson
307b1789a1
Give radio button its own example code now
...
Still within a RadioSet, but this time only the code that uses RadioSet; not
the code that just uses strings.
2023-02-23 16:00:14 +00:00
Dave Pearson
a821b2f8f6
Add width reference documentation for radio buttons
...
A large part of the code to go with this is to show off a radio set; I feel
it makes sense to use the same code for both bits of documentation given
that a radio button only really makes sense inside a radio set.
2023-02-23 15:14:25 +00:00
Dave Pearson
a3d50d90f6
Revert example code to composing the old way
...
We've not documented it yet so, until we do...
2023-02-23 15:09:45 +00:00
Dave Pearson
87bd610eec
Swap the checkbox example to the newer compose approach
2023-02-23 14:45:24 +00:00
Will McGugan
da9e28d4d6
Add example
2023-02-23 14:41:44 +00:00
Dave Pearson
01215a1fe8
Tweak the style of the box in the example for checkbox
2023-02-23 14:40:58 +00:00
Dave Pearson
3fd3d272ce
Add the widget reference for Checkbox
2023-02-23 14:26:11 +00:00
Will McGugan
11d10db1ab
fast path for scrolling
2023-02-17 10:42:42 +00:00
Will McGugan
0dac83668b
Merge pull request #1791 from Textualize/textual-markdown
...
Textual markdown
2023-02-15 09:23:19 +00:00
Will McGugan
08c3a7214e
No, I repeat, no abbreviations
2023-02-14 17:28:24 +00:00
Will McGugan
71d0017ef9
docs and refactor
2023-02-14 15:22:15 +00:00
darrenburns
bd73b1b007
Merge branch 'main' into datatable-cell-keys
2023-02-13 16:02:37 +00:00
Will McGugan
a37e7fcb2b
fix modal example
2023-02-11 15:37:24 +00:00
Darren Burns
f4cd51e5e8
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-02-09 15:55:45 +00:00
Dave Pearson
1956f7f9d7
Rename the switch--switch component class to switch--slider
...
Following on from #1751 : originally Switch was called Checkbox and the
moving part was, for the component class, called a checkbox--switch; after
renaming the widget to Switch that component class ended up being
switch--switch; which wasn't ideal.
We decided to go with it as-is, but I just realised that internally the code
calls it a slider. So this leans into that and I'm renaming the component
class switch--slider. This removes the doubling-up of the name and also
makes the code more consistent.
2023-02-09 15:36:04 +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
Darren Burns
20b8782a5d
Unit tests for DataTable reverse sort
2023-02-08 12:54:15 +00:00
Rodrigo Girão Serrão
e5e7c08afe
Update docs accordingly.
2023-02-08 10:53:51 +00:00
Darren Burns
0721d7fc87
Snapshot test for sorting
2023-02-08 10:39:04 +00:00
Darren Burns
802ea63ddb
Default cell formatter fixes
2023-02-07 15:09:21 +00:00
Will McGugan
fb7fd14262
Merge pull request #1710 from Textualize/line-api-docs
...
Documented the Line API
2023-02-06 11:42:57 +00:00
Will McGugan
f8577f79d7
review fixes
2023-02-06 11:34:37 +00:00
Will McGugan
fb7c1642bc
Checker example 4, docs and diagram
2023-02-04 15:40:36 +01:00
Will McGugan
25b498896d
checker 4 and diagram
2023-02-04 11:28:07 +01:00
Will McGugan
a5808db8b8
more docs and diagrams
2023-02-03 19:10:03 +01:00
Will McGugan
2ff278874b
docs examples and diagrams
2023-02-03 11:23:14 +01:00
Will McGugan
8ce76f4f89
fix title update
2023-02-01 18:01:34 +01:00
Will McGugan
806c80b8fe
simplify
2023-02-01 17:14:53 +01:00
Will McGugan
0a5838d964
checker example
2023-02-01 16:26:55 +01:00
Rodrigo Girão Serrão
828d8d2cf1
Replace Static with Label.
2023-01-31 17:31:36 +00:00
Rodrigo Girão Serrão
c14f635244
Document setting app (sub)title.
2023-01-31 17:31:06 +00:00
Rodrigo Girão Serrão
0f3aff6fb1
Merge pull request #1408 from Textualize/review-styles-reference
...
Review styles reference
2023-01-10 14:20:11 +00:00
Ofek Lev
9b779c130d
Fix typo
2023-01-10 01:42:16 -05:00
Rodrigo Girão Serrão
d41471034a
Fix failing tests.
2023-01-09 16:39:12 +00:00
Rodrigo Girão Serrão
130d8b8d05
Increase negative y offset.
2023-01-09 16:34:24 +00:00
Rodrigo Girão Serrão
15691b4451
Remove debugging style.
2023-01-09 16:34:06 +00:00
Rodrigo Girão Serrão
a1b9d4b2c5
Fix examples.
2023-01-09 16:11:45 +00:00
Rodrigo Girão Serrão
2827edcd49
Add example with all padding types.
2023-01-09 15:43:34 +00:00
Rodrigo Girão Serrão
71b859b6e2
Add thorough example for all outlines.
2023-01-09 13:49:32 +00:00
Rodrigo Girão Serrão
aad41b8de0
Fix height example.
...
[skip ci]
2023-01-07 09:44:39 +00:00
Rodrigo Girão Serrão
8de6d8fd69
Add new width comparison example.
2023-01-07 09:40:03 +00:00
Darren Burns
ad6a716d09
Fix mouse01 example background transparency
2023-01-07 09:35:00 +00:00
Rodrigo Girão Serrão
2217a8f5fa
Add new visibility example.
...
This new example shows how we can have an invisible container with visible children.
2023-01-06 16:38:31 +00:00