filter-container icon indicating copy to clipboard operation
filter-container copied to clipboard

string match mode, group items, allow disabling URL control for certain filters

Open saitho opened this issue 1 year ago • 2 comments

Add new setting filter-match-mode to control how strings should be matched. Per default it matches strictly (string completely equals the input). But it allows matching substrings:

<filter-container oninit delimiter="," filter-mode="any" filter-match-mode="contains">

or restrict it to input named "title":

<filter-container oninit delimiter="," filter-mode="any" filter-match-mode-title="contains">


Additional features included:

  • Allow disabling URL control by filter name
  • Filter groups: filter items can be added to a group. Labels for that group are hidden when no items from that group is visible

saitho avatar Apr 14 '24 13:04 saitho

I added two new features (disable URL control for certain filters and filter groups) Both features are used here: https://www.synchronevents.de/veranstaltungen

match-mode can be tested here: https://conan-tcg.net/cards/ "Name" matches by contains (search for "Edo"), while "Card ID" matches exactly (search for "P001")

saitho avatar Jan 07 '25 14:01 saitho

New attribute filter-input-delimiter-[filter name] on filter container allows splitting the input (mainly useful for text input fields) into multiple strings that are matched as single values. Can be tested on https://conan-tcg.net/cards/ in Card ID searching for "P002,P003". URL update also takes that into account by combining the values with the set delimiter, which is why this is a filter container setting, not an input setting.

saitho avatar Jan 18 '25 11:01 saitho