Symfony datatables true false filter how to do?

I’m new to datatables. I want to make a dropdown select filter for a column that content ( ✔ for true value) and ( ✘ for false value). How can I do it?

my twig view code:

<td>{% if e.isActive %} show true text {% else %} show false text {% endif %}</td>

Now I want to make a dropdown filter that has 2 choices true and false to filter this columns.

Thanks beforehand

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *