@formio-tmt/bootstrap
Version:
Bootstrap templates for Form.io forms
40 lines • 1.79 kB
JavaScript
export default function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<div class="card' +
((__t = ( ctx.component.verticalLayout ? ' card-vertical' : '')) == null ? '' : __t) +
'">\n <div class="card-header">\n <ul class="nav nav-tabs card-header-tabs' +
((__t = ( ctx.component.verticalLayout ? ' nav-tabs-vertical' : '')) == null ? '' : __t) +
'" role="tablist">\n ';
ctx.component.components.forEach(function(tab, index) { ;
__p += '\n <li class="nav-item' +
((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
'" role="tab" ref="' +
((__t = (ctx.tabLikey)) == null ? '' : __t) +
'">\n <a\n class="nav-link' +
((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
'' +
((__t = ( ctx.component.verticalLayout ? ' nav-link-vertical' : '')) == null ? '' : __t) +
'"\n href="#' +
((__t = (tab.key)) == null ? '' : __t) +
'"\n ref="' +
((__t = (ctx.tabLinkKey)) == null ? '' : __t) +
'"\n >\n ' +
((__t = (ctx.t(tab.label, { _userInput: true }))) == null ? '' : __t) +
'\n </a>\n <div class="nav-arrow bs4"></div>\n </li>\n ';
}) ;
__p += '\n </ul>\n </div>\n ';
ctx.component.components.forEach(function(tab, index) { ;
__p += '\n <div\n role="tabpanel"\n class="card-body tab-pane' +
((__t = ( ctx.currentTab === index ? ' active' : '')) == null ? '' : __t) +
'"\n style="display: ' +
((__t = (ctx.currentTab === index ? 'block' : 'none')) == null ? '' : __t) +
'"\n ref="' +
((__t = (ctx.tabKey)) == null ? '' : __t) +
'"\n >\n ' +
((__t = (ctx.tabComponents[index])) == null ? '' : __t) +
'\n </div>\n ';
}) ;
__p += '\n</div>\n';
return __p
}