Commit Graph

6390 Commits

Author SHA1 Message Date
Dave Pearson
d656fa6a79 Fix a typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-25 13:24:01 +01:00
Dave Pearson
51f8d0dc9a Break up the SelectionList snapshit tests
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-25 13:20:22 +01:00
Dave Pearson
51133b3a62 Typo fix
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-25 13:19:18 +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
3796a849c4 Simplify _make_selection a wee bit 2023-05-25 11:21:50 +01:00
Dave Pearson
939586f5f8 Add snapshot tests for the SelectionList examples 2023-05-25 11:06:21 +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
Will McGugan
8151946f38 add blur (#2645)
* add blur

* docstring

* blur on disabled

* snapshot test

* Add test
2023-05-24 20:16:11 +01:00
Dave Pearson
a89c199409 Merge pull request #2646 from davep/fix-broken-xrefs
Fix some assorted documentation cross-references
2023-05-24 16:37:01 +01:00
Dave Pearson
bad2a5a064 Merge pull request #2647 from davep/fix-set-classes-docstring
Fix docstring for `DOMNode.set_classes`
2023-05-24 16:24:20 +01:00
Dave Pearson
2c184caa2a Fix docstring for DOMNode.set_classes
The argument in the Args list was missing its name; also fixes a typo too.
2023-05-24 16:16:15 +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
fb82564858 Merge pull request #2643 from davep/include-more-option-stuff-in-docs
Include more missing things from the OptionList
2023-05-24 15:28:52 +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
49c7b20bc1 Link mention of Strip in a docstring 2023-05-24 15:19:02 +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
113ab41c3b Some more linking to types within the SelectionList docstrings 2023-05-24 14:58:27 +01:00
Dave Pearson
ac7a892965 Link most(all?) docstring mentions of SelectionList
Putting the hype in hypertext.
2023-05-24 14:41:11 +01:00
Dave Pearson
9c0df44b59 Supply the generic type when creating a Selection
I don't think this is *needed* as such, but it seems like the sensible thing
to do.
2023-05-24 14:35:13 +01:00
Dave Pearson
a32cfdbe40 Better linking for the docstring for MessageSelectionType 2023-05-24 14:32:32 +01:00
Dave Pearson
64dd7d0f17 Better linking for the docstring for SelectionType 2023-05-24 14:31:50 +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
2874b24a87 Export genetic types for SelectionList
So these can end up in the docs.
2023-05-24 14:30:15 +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
258181d1de Flesh out the docstring for the selected property 2023-05-24 14:04:53 +01:00
Dave Pearson
a31c3f0774 Correct the Selection.__init__ docstring 2023-05-24 14:03:09 +01:00
Dave Pearson
9742144e8c Remove a note that isn't relevant any more 2023-05-24 13:00:20 +01:00
Dave Pearson
2e37541d70 Correct the types in a copied docstring 2023-05-24 12:59:20 +01:00
Dave Pearson
64ed982fd4 Make it very clear when SelectedChanged is posted 2023-05-24 12:57:13 +01:00
Dave Pearson
b113663221 Add a note about SelctionToggled vs SelectedChanged 2023-05-24 12:55:31 +01:00
Dave Pearson
65375e88b6 Remove an outdated note 2023-05-24 12:39:33 +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
Dave Pearson
cb05cfff53 Test that the control of selection list events is always correct 2023-05-24 10:21:40 +01:00
Dave Pearson
0a63748573 Add a test for later addition of selected selections 2023-05-24 10:16:25 +01:00
Dave Pearson
7110b30b44 Make sure adding a selection later updates selected 2023-05-24 10:16:06 +01:00
Dave Pearson
d3fe23f0bc Allow passing a Selection into a SelctionList
Up until now I've only been allowing tuples; mostly a hangover from the
initial take on this. Things have drifted a bit now and I feel it makes
sense to allow Selection instances in too.
2023-05-24 10:09:53 +01:00