formiojs
Version:
Common js library for client side interaction with <form.io>
39 lines (38 loc) • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
if (!ctx.label.hidden && ctx.label.labelPosition !== 'bottom') { ;
__p += '\n ' +
((__t = ( ctx.labelMarkup )) == null ? '' : __t) +
'\n';
} ;
__p += '\n\n';
if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { ;
__p += '\n <label class="' +
((__t = (ctx.label.className)) == null ? '' : __t) +
'"></label>\n';
} ;
__p += '\n\n' +
((__t = (ctx.element)) == null ? '' : __t) +
'\n\n';
if (!ctx.label.hidden && ctx.label.labelPosition === 'bottom') { ;
__p += '\n ' +
((__t = ( ctx.labelMarkup )) == null ? '' : __t) +
'\n';
} ;
__p += '\n';
if (ctx.component.description) { ;
__p += '\n <div id="d-' +
((__t = (ctx.instance.id)) == null ? '' : __t) +
'-' +
((__t = (ctx.component.key)) == null ? '' : __t) +
'" class="form-text text-muted">' +
((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) +
'</div>\n';
} ;
__p += '\n';
return __p
}