{## # This file is part of the SgDatatablesBundle package. # # (c) stwe # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. #} {% set filter_input_type %} type="{{ column.filter.type }}" {% endset %} {%- set filter_id_selector -%} sg-datatables-{{ datatable_name }}-{{ position }}-filter-{{ column.index }} {%- endset -%} {%- set filter_selector -%} id="{{ filter_id_selector }}" {%- endset -%} {% set filter_classes %} class="sg-datatables-individual-filtering{% if column.filter.classes is not same as(null) %} {{ column.filter.classes }}{% endif %}" {% endset %} {% set filter_width %} {% if column.width is not same as(null) %}style="width:{{ column.width }};"{% endif %} {% endset %} {% set filter_input_placeholder %} {% if column.filter.placeholder is same as(true) %} placeholder="{% if column.filter.placeholderText is not same as(null) %}{{ column.filter.placeholderText }}{% else %}{{ column.title|striptags|trim }}{% endif %}" {% endif %} {% endset %} {% set filter_search_column_index %} data-search-column-index="{{ search_column_index }}" {% endset %} {% set filter_column_name %} {% if column.name is not same as(null) %}name="{{ column.name }}"{% endif %} {% endset %} {% set filter_input_initial_search %} {% if column.filter.initialSearch %}value="{{ column.filter.initialSearch }}"{% endif %} {% endset %} {%- set cancel_button_id_selector -%} sg-datatables-{{ datatable_name }}-{{ position }}-filter-cancel-{{ column.index }} {%- endset -%} {% set cancel_button_html %} {% if true == column.filter.cancelButton %} {% endif %} {% endset %} {% set cancel_button_js %} {% if true == column.filter.cancelButton %} {% endif %} {% endset %} {% block html %} {{ cancel_button_html }} {% endblock %} {% block javascript %} {{ cancel_button_js }} {% endblock %}