@digitalpatterns/formio-gds-template
Version:
Gov UK design system formio templates
39 lines • 1.13 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, '') }
__p += '<div class="govuk-checkboxes__item">\n <' +
((__t = (ctx.input.type)) == null ? '' : __t) +
'\n ref="input"\n class="govuk-checkboxes__input"\n id="' +
((__t = (ctx.id)) == null ? '' : __t) +
'"\n ';
for (var attr in ctx.input.attr) { ;
__p += '\n ' +
((__t = (attr)) == null ? '' : __t) +
'="' +
((__t = (ctx.input.attr[attr])) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n ';
if (ctx.checked) { ;
__p += 'checked=true';
} ;
__p += '\n >\n</' +
((__t = (ctx.input.type)) == null ? '' : __t) +
'>\n<label class="' +
((__t = (ctx.input.labelClass)) == null ? '' : __t) +
' govuk-label govuk-checkboxes__label" for="' +
((__t = (ctx.id)) == null ? '' : __t) +
'">\n ' +
((__t = (ctx.input.content)) == null ? '' : __t) +
'\n ';
if (!ctx.self.labelIsHidden()) { ;
__p += '<span>' +
((__t = (ctx.input.label)) == null ? '' : __t) +
'</span>';
} ;
__p += '\n</label>\n</div>\n';
return __p
}