deephaven / deephaven-plugins

Deephaven Plugins
11 stars 15 forks source link

feat: ui.search_field #999

Open ethanalvizo opened 2 weeks ago

ethanalvizo commented 2 weeks ago

Closes #936 Closes #1006

ethanalvizo commented 2 weeks ago

Some quick examples to test the component

from deephaven import ui

disabled = ui.search_field(
    is_disabled=True,
)

label = ui.search_field(label="What do you want to look for", default_value="Search for a word")

on_clear = ui.search_field(on_clear=lambda: print("Input cleared"))

on_submit = ui.search_field(on_submit=lambda e: print(f"Value: {e}"))
ethanalvizo commented 2 weeks ago

Markdown docs will be in a separate PR

dsmmcken commented 1 week ago

I would put markdown in this PR please, docs should go in with features when we can

mofojed commented 1 week ago

@ethanalvizo please open a PR to re-export the SearchField component before this: https://github.com/deephaven/web-client-ui/issues/2287