Skip to content

Commit

Permalink
Merge pull request #3900 from jrycw/add-one-period
Browse files Browse the repository at this point in the history
docs(queries): add one period
  • Loading branch information
rodrigogiraoserrao authored Dec 19, 2023
2 parents 1c8dc5d + d6780f7 commit 7c0fe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ If the last widget is *not* a button, Textual will raise a [WrongType][textual.c

## Filter

Query objects have a [filter][textual.css.query.DOMQuery.filter] method which further refines a query. This method will return a new query object with widgets that match both the original query _and_ the new selector
Query objects have a [filter][textual.css.query.DOMQuery.filter] method which further refines a query. This method will return a new query object with widgets that match both the original query _and_ the new selector.

Let's say we have a query which gets all the buttons in an app, and we want a new query object with just the disabled buttons. We could write something like this:

Expand Down

0 comments on commit 7c0fe10

Please sign in to comment.