UNPKG

formiojs

Version:

Common js library for client side interaction with <form.io>

8 lines (7 loc) 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { form: "\n<div class=\"input-group\">\n {% values.forEach(function(item) { %}\n <div class=\"form-check{{inline ? '-inline' : ''}} {{input.attr.type}}{{inline ? '-inline' : ''}}\" ref=\"wrapper\">\n <label class=\"control-label form-check-label\" for=\"{{id}}{{row}}-{{item.value}}\">\n <{{input.type}} \n ref=\"input\" \n {% for (var attr in input.attr) { %}\n {{attr}}=\"{{input.attr[attr]}}\"\n {% } %}\n value=\"{{item.value}}\"\n {% if (value === item.value || (typeof value === 'object' && value.hasOwnProperty(item.value) && value[item.value])) { %}\n checked=true\n {% } %}\n id=\"{{id}}{{row}}-{{item.value}}\" \n >\n <span>{{t(item.label)}}</span>\n </label>\n </div>\n {% }) %}\n</div>\n" };