1 search field to filter multiple lists on multiple properties
We want to be able to use 1 search field to filter multiple lists, on different properties.
Today, this is doable like this:
<solid-form-search
id="search"
fields="nameSet(hd_name, sib_name)"
></solid-form-search>
<solid-display
data-src="hd.com/users"
fields="nameSet(hd_name)"
filtered-by="search"
></solid-display>
<solid-display
data-src="sib.com/users"
fields="nameSet(sib_name)"
filtered-by="search"
></solid-display>
However, it feels strange to add sets to the lists to allow such a filtering because it changes the DOM structure.
It may be easier to edit the solid-form-search
to specify which fields should be used for filtering:
<solid-form-search
id="search"
fields="name"
search-name="hd_name, sib_name"
></solid-form-search>
<solid-display
data-src="hd.com/users"
fields="hd_name"
filtered-by="search"
></solid-display>
<solid-display
data-src="sib.com/users"
fields="sib_name"
filtered-by="search"
></solid-display>
@balessan @clement what do you think?
Requested by Hubl