# Search bars

By default our tables have the option to search the text fields of the table, which can be found as a search bar located in the right top corner of the table, in the following example it can be seen how the default configuration has the search bar.

```python
data = [
    {'date': dt.date(2021, 1, 1), 'x': 5, 'y': 5, 'searchA': 'A', 'searchB': 'B'},
    {'date': dt.date(2021, 1, 2), 'x': 6, 'y': 5, 'searchA': 'B', 'searchB': 'Z'},
    {'date': dt.date(2021, 1, 3), 'x': 4, 'y': 5, 'searchA': 'C', 'searchB': 'W'},
    {'date': dt.date(2021, 1, 4), 'x': 7, 'y': 5, 'searchA': 'B', 'searchB': 'T'},
    {'date': dt.date(2021, 1, 5), 'x': 3, 'y': 5, 'searchA': 'A', 'searchB': 'Z'},
]

s.plt.table(data=data, order=0)
```

![Table with enabled search bars](/files/aptiSfXE7q5KEm7ulaSl)

To use the search bar you just need to type the desired value and it automatically searches for the entries that match the value:

<figure><img src="/files/cwR2Ldi2s9IJuEnDYjS0" alt=""><figcaption><p>Result from searching the value B in the column searchA</p></figcaption></figure>

The search bar can be turned off by setting the parameter `search` to `False`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shimoku.com/dev/elements/charts/table/search-bars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
