Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Search into Table? #222

Open
oluckyman opened this issue May 5, 2022 · 1 comment
Open

Add Search into Table? #222

oluckyman opened this issue May 5, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@oluckyman
Copy link
Contributor

oluckyman commented May 5, 2022

I often do this:

  1. Use Inputs.table to show the data in one cell:
Inputs.table(data)

image

  1. Realise I want to search something in the data, so I create lookup cell with the search and pass it into the table cell instead of data
viewof lookup = Inputs.search(data)
Inputs.table(lookup)

image


💡 Would be nice to combine the above two-cell-combo into one:

Inputs.table(data, { search: <search props> })

image

@mbostock mbostock added the enhancement New feature or request label May 5, 2022
@enjalot
Copy link

enjalot commented May 5, 2022

I made a quick prototype: https://observablehq.com/d/26da32e725a4aa1b
using code from https://observablehq.com/@tophtucker/pipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants