Skip to content

Commit

Permalink
Grammar fixes
Browse files Browse the repository at this point in the history
Co-authored-by: margaretkennedy <[email protected]>
  • Loading branch information
ethanalvizo and margaretkennedy authored Nov 22, 2024
1 parent 1306e46 commit d605e83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/ui/docs/components/search_field.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def ui_search_field_is_required_examples():
my_search_field_is_required_example = ui_search_field_is_required_examples()
```

By setting `is_required` to True, the `necessity_indicator` is set to "icon" by default, but this can be changed. The `necessity_indicator` can also be used independently to indicate that the search field is optional.
By setting `is_required` to True, the `necessity_indicator` is set to "icon" by default. This can be changed with the `necessity_indicator` prop, which can be used independently to indicate that the search field is optional.

When the `necessity_indicator` prop is set to "label", a localized string will be generated for "(required)" or "(optional)" automatically.
When `necessity_indicator` is set to "label," a localized string will be automatically generated for "(required)" or "(optional)."

```python
from deephaven import ui
Expand Down Expand Up @@ -276,7 +276,7 @@ my_search_field_width_examples = ui_search_field_width_examples()

## Custom icon

The `icon` prop changes the icon within the search field. This can quickly indicate to the user what the field is for. The complete list of icons can be found in [`icon`](./icon.md)
The `icon` prop changes the icon within the search field. This can quickly indicate to the user what the field is for. The complete list of icons can be found in [`icon`](./icon.md).


```python
Expand Down

0 comments on commit d605e83

Please sign in to comment.