UNPKG

@formio-tmt/bootstrap

Version:

Bootstrap templates for Form.io forms

25 lines 694 B
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<' + ((__t = (ctx.tag)) == null ? '' : __t) + ' class="formio-component-htmlelement ' + ((__t = ( ctx.component.className )) == null ? '' : __t) + '" ref="html"\n '; ctx.attrs.forEach(function(attr) { ; __p += '\n ' + ((__t = (attr.attr)) == null ? '' : __t) + '="' + ((__t = (attr.value)) == null ? '' : __t) + '"\n '; }) ; __p += '\n>' + ((__t = (ctx.t(ctx.content))) == null ? '' : __t); if (!ctx.singleTags || ctx.singleTags.indexOf(ctx.tag) === -1) { ; __p += '</' + ((__t = (ctx.tag)) == null ? '' : __t) + '>'; } ; __p += '\n'; return __p }