{% if title %}
# | {% for col in columns %} {% if col.name && col._id !== "_check" %}{{ __(col.name) }} | {% endif %} {% endfor %}
---|---|
{{ row._index + 1 }} | {% for col in columns %} {% if col.name && col._id !== "_check" %} {% var value = col.fieldname ? row[col.fieldname] : row[col.id] %} {% var longest_word = cstr(value).split(' ').reduce((longest, word) => word.length > longest.length ? word : longest, ''); %}45 %} class="overflow-wrap-anywhere" {% endif %}> {% format_data = row.is_total_row && ["Currency", "Float"].includes(col.fieldtype) ? data[0] : row %} {% if (row.is_total_row && col._index == 0) { %} {{ __("Total") }} {% } else { %} {{ col.formatter ? col.formatter(row._index, col._index, value, col, format_data, true) : col.format ? col.format(value, row, col, format_data) : col.docfield ? criscostack.format(value, col.docfield) : value }} {% } %} | {% endif %} {% endfor %}