formiojs
Version:
Common js library for client side interaction with <form.io>
8 lines (7 loc) • 844 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
form: "\n<table class=\"table \n {{ component.striped ? 'table-striped' : ''}}\n {{ component.bordered ? 'table-bordered' : ''}}\n {{ component.hover ? 'table-hover' : ''}}\n {{ component.condensed ? 'table-condensed' : ''}}\n \">\n {% if (component.header && component.header.length > 0) { %}\n <thead>\n <tr>\n {% component.header.forEach(function(header) { %}\n <th>{{t(header)}}</th>\n {% }) %}\n </tr>\n </thead>\n {% } %}\n <tbody>\n {% tableComponents.forEach(function(row, rowIndex) { %}\n <tr ref=\"row-{{id}}\">\n {% row.forEach(function(column, colIndex) { %} \n <td ref=\"{{columnKey}}\">{{column}}</td>\n {% }) %}\n </tr>\n {% }) %}\n </tbody>\n</table>\n"
};