[Python] How to change Mantine multiselect options-filtering in Python

Discussão em 'Python' iniciado por Stack, Abril 27, 2025.

  1. Stack

    Stack Membro Participativo

    I've developped a small dash app that allows user to plot several charts depending on dropdown inputs.

    I first used bootstrap dropdowns, but it could not handle my huge amount of options (~7000) That's when I learned about Mantine multiselect and it's "limit" attribute that works juste fine !

    The only issue I have right now is with the inner search fonction. My options have this kind of format:

    • This_is_my_option_A
    • This_is_my_bigger_option_A

    On bootstrap dropdown: writting "is my" would show both options because each word is seen as a unique input. I am please with this kind of behaviour

    On default mantine multiselect, it requires user to write down the "_", and you cannot several pieces of the options.

    I've seen here this should work for you: https://mantine.dev/core/multi-select/#options-filtering that it is possible to change the filtering options, the example shows exactly what i'm looking for.

    My problem is the following: "How do I do that from my Python Dash App? I have not found a way to pass that filtering function as props from my python script. (I have no experience in JS)

    Continue reading...

Compartilhe esta Página