{% load dash_tags %} {% if widget.name == '_selected_action' %} {% with widget=widget|apply_class_to_widget:'checkbox-xs checkbox' %} {% endwith %} {% else %} {% with widget=widget|apply_class_to_widget:'toggle-sm border-black/30 toggle' %} {% endwith %} {% endif %}