For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

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

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

Result from searching the value B in the column searchA

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

Last updated

Was this helpful?