Match span

Match span

ToxicSebastianToxicSebastian Posts: 3Questions: 1Answers: 0

Is it possible to match on numbers included in a span of numbers?

For instance if I have a value in my table which is "15-20", and I search for the value "17" in that column. Can I get that to match and show up in the filtered results?

Sincerely,
Sebastian

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @ToxicSebastian ,

    The table's search input can't be used, but you can search within the range if you create a custom input element as in the example here.

    Hope that does the trick,

    Cheers,

    Colin

  • ToxicSebastianToxicSebastian Posts: 3Questions: 1Answers: 0

    Thank you Colin. I will try to modify that code to suit my needs, as I don't know at what position the possible range will be (the table is dynamically populated to a certain degree).

    / Sebastian

  • ToxicSebastianToxicSebastian Posts: 3Questions: 1Answers: 0

    Hi again @colin , could you provide an example of how to do this with possible multiple columns containing range? I'm trying but not quite getting it right.

    // Sebastian

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @ToxicSebastian ,

    In that example, you just need to create a second search extension where you use the correct column, and another input element. I'm happy to take a look if you want to post a live example similar to my one above.

    Cheers,

    Colin

This discussion has been closed.