{%- set static = static ?? false %} {%- set fullWidth = fullWidth ?? true %} {%- set cols = cols ?? [] %} {%- set rows = rows ?? [] %} {%- set initJs = not static and (initJs ?? true) -%} {%- set minRows = minRows ?? null %} {%- set maxRows = maxRows ?? null %} {%- set staticRows = static or (staticRows ?? false) or (minRows == 1 and maxRows == 1 and rows|length == 1) %} {%- set fixedRows = not staticRows and (minRows and minRows == maxRows and minRows == rows|length) %} {% if not static %} {{ hiddenInput(name, '') }} {% endif %} {% macro cellClass(fullWidth, col, class) %} {{- (class is iterable ? class : [class])|merge(fullWidth and (col.thin ?? false) ? ['thin'] : [])|join(' ') -}} {% endmacro %}