Combine search and selection in Inputs.table

I am exploring Inputs.table in framework.
I see that I can enable selection using code
const selection = view(Inputs.search(mytable))
and search using code
const selection = view(Inputs.table(mytable, {required: false}))
How do I combine this two, so the user can both select rows and search rows?
Thanks
-veera

They work really well together.

```js
const results = view(Inputs.search(data));
 ```

```js
const selection = view(Inputs.table(results));
```

Here, results will be an array with the search results, which you then use as the data for your table.

1 Like

Great! I was trying that, but was using the same cell. I guess that’s why it didn’t work for me first. Thanks!