option: function(data, escape) {
    {% if widget.is_tabular %}
        let columns = ''

        {% if widget.plugins.dropdown_header.show_value_field %}
            columns += `<div class="col">${data[this.settings.valueField]}</div>
            <div class="col">${data[this.settings.labelField]}</div>`
        {% else %}
            columns += `<div class="col">${data[this.settings.labelField]}</div>`
        {% endif %}

        {% for item in widget.plugins.dropdown_header.extra_values %}
            columns += `<div class="col">${escape(data['{{ item }}'] || '')}</div>`
        {% endfor %}

        return `<div class="row">${columns}</div>`
    {% else %}
        return '<div>' + escape(data.{{ widget.label_field }}) + '</div>';
    {% endif %}
},