Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify handling of title lists in ActionListopsWidget documentation #8184

Merged
merged 2 commits into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
caption: action-listops
created: 20141025120850184
modified: 20230805103548113
modified: 20240509135041526
myfield:
tags: ActionWidgets Widgets
title: ActionListopsWidget
Expand Down Expand Up @@ -35,10 +35,12 @@ The above widget will toggle the presence of the element <<.value "List Item">>
Similarly, if an element is to always be removed when it is present, the `-` / `:except` [[filter run prefix|Filter Expression]] can be used. Both of the following yield the same result:

```
<$action-listops $subfilter="-[[List Item]]"/>
<$action-listops $subfilter="+[remove[List Item]]"/>
<$action-listops $subfilter="-[[ListItem]]"/>
<$action-listops $subfilter="+[remove[ListItem]]"/>
```

<<.infoBox """Note that the parameter of the [[remove Operator]] is a [[Title List]]. To remove one or more titles containing spaces the individual titles must be wrapped in double square brackets, usually via a soft [[Filter Parameter]]. See //Filtered List Variable Assignment// in the [[SetWidget]] documentation to learn more.""">>

Without any prefixes, the filter run output is simply [[dominantly appended|Dominant Append]] to the list.

See also the [[Examples|ActionListopsWidget (Examples)]].
Expand Down
Loading