Skip to content

Commit

Permalink
Update Select documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Dec 18, 2024
1 parent 1060a84 commit 9695d04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/widgets/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ The following example presents a `Select` created using the `from_values` class

## Blank state

The widget `Select` has an option `allow_blank` for its constructor.
The `Select` widget has an option `allow_blank` for its constructor.
If set to `True`, the widget may be in a state where there is no selection, in which case its value will be the special constant [`Select.BLANK`][textual.widgets.Select.BLANK].
The auxiliary methods [`Select.is_blank`][textual.widgets.Select.is_blank] and [`Select.clear`][textual.widgets.Select.clear] provide a convenient way to check if the widget is in this state and to set this state, respectively.

## Type to search

The `Select` widget has a `type_to_search` attribute which allows you to type to move the cursor to a matching option when the widget is expanded. To disable this behavior, set the attribute to `False`.

## Reactive Attributes

Expand Down

0 comments on commit 9695d04

Please sign in to comment.