UNPKG

formiojs

Version:

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

8 lines (7 loc) 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { form: "\n{% if (component.prefix || component.suffix) { %}\n<div class=\"input-group\">\n{% } %}\n{% if (component.prefix) { %}\n<div class=\"input-group-addon\">{{component.prefix}}</div>\n{% } %}\n<{{input.type}} \n ref=\"{{input.ref ? input.ref : 'input'}}\" \n {% for (var attr in input.attr) { %}\n {{attr}}=\"{{input.attr[attr]}}\"\n {% } %}\n>{{input.content}}</{{input.type}}>\n{% if (component.suffix) { %}\n<div class=\"input-group-addon\">{{component.suffix}}</div>\n{% } %}\n{% if (component.prefix || component.suffix) { %}\n</div>\n{% } %}\n" };