jeudi 3 mai 2018

filterWithSelect in ember model Tables, remove regex

Using Ember Models Table

If I have set a field in my database to include: male and female

and I have this in my columns, I'm using this:

    {
        "propertyName": "sex",
        "title": "Sex",
        "filterWithSelect": true,
        "sortFilterOptions": true
    },

This works great if I select 'female', but 'male' includes both sexes. Is there any way to restrict it to the entire string, instead of it doing a regex?




Aucun commentaire:

Enregistrer un commentaire