{## # 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. #} { {% block common %} {% if column.cellType is not same as(null) %} "cellType": "{{ column.cellType }}", {% endif %} {% if column.contentPadding is not same as(null) %} "contentPadding": "{{ column.contentPadding }}", {% endif %} {% if column.defaultContent is not same as(null) %} "defaultContent": {{ column.defaultContent|json_encode|raw }}, {% endif %} {% if column.name is not same as(null) %} "name": "{{ column.name }}", {% endif %} {% if column.width is not same as(null) %} "width": "{{ column.width }}", {% endif %} {% block title %} {% if column.title is not same as(null) %} "title": {{ column.title|json_encode|raw }}, {% endif %} {% endblock %} {% if column.searchable is same as(true) or column.searchable is same as(false) %} "searchable": {{ column.searchable|sg_datatables_bool_var }}, {% endif %} {% if column.visible is same as(true) %} "visible": true, {% if column.className is not same as(null) %} "className": "{{ column.className }}", {% endif %} {% endif %} {% if column.visible is same as(false) %} "visible": false, "className": "never {% if column.className is not same as(null) %}{{ column.className }}{% endif %}", {% endif %} {% if column.orderable is same as(true) %} "orderable": true, {% if column.orderSequence is not same as(null) %} "orderSequence": {{ column.orderSequence|raw }}, {% endif %} {% if column.orderData is not same as(null) %} "orderData": {{ column.orderData }}, {% endif %} {% endif %} {% if column.orderable is same as(false) %} "orderable": false, {% endif %} {% if column.responsivePriority is not same as(null) %} "responsivePriority": {{ column.responsivePriority }}, {% endif %} {% endblock %} {% block data %} "data": "{{ column.data }}", {% endblock %} },