<% if( object.title != '' ) { %>
<% if( object.icon != '' ) { %><% } %>$title
<%= componentrenderchildren(this, 'html', {where: ['position', '=', 'title'], options: _options}) %><% if( object.detailwindow != '' ) { %><% } %><% if( object.collapsable == 'yes' ) { %>
<% } %>
<% } %><% if( object.cansearch == 'yes' || (object.pagination != '' && object.pagination != 'no') ) { %>
<% if( object.paginationfrom ) { %><%= object.paginationfrom %>-<%= parseInt(object.paginationfrom) + parseInt(object.paginationsize) - 1 > parseInt(object.paginationtotal) ? object.paginationtotal : parseInt(object.paginationfrom) + parseInt(object.paginationsize) - 1 %> de <%= object.paginationtotal %><% } %>
<% } %>
<% if( object.renderoptions=='client' ) { %><% calcexpressionswoc(object) %><% } %>data-link="$link"<% } %> <% if( object.target != '' ) { %>data-target="$target"<% } %> <% if( object.detailwindow != '' ) { %>data-detail="$detailwindow"<% } %> <% if( object.pagination != '' && object.pagination != 'no' ) { %>data-pagination="$pagination"<% } %> style=" <% if( object.collapsable == 'yes initially collapsed' ) { %>display: none;<% } %> width:100%; $style " class="table table-primary $class <%= getwidthclass(object.width) %> <%= object.cansort == 'yes' ? 'cansort' : '' %>" data-defaultsort="$defaultsort" data-sortby="$sortby" data-messageonnorows="$messageonnorows" <% if( object.datasource != '' ) { %>data-dependencies="<%= arrayToString(sqldependencies(object.datasource), ',') %>"<% } %> $additionalattributes><% if( object.renderoptions=='client' ) { %><% if( object.children.length == 0 ) { %><%= object.buildheader() %><% } %><% calcexpressions(object.children.where('type', 'header'), object.result ? object.result.transpose() : null) %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'header'], options: mergearguments(_options, 'cansort=yes')}) %><% } %><% if( object.renderoptions=='client' ) { %><% if( object.children.length == 0 ) { %><%= object.buildrows() %><% } %> <% var _groups = object.result ? object.result.groupby(object.groupby_efe) : [[{}]]; for( var _i1 = 0; _i1 < _groups.length; _i1++ ) { var _rows = _groups[_i1]; console.log("_rows table !", _rows); %> <% calcexpressions(object.children.where('type', 'headergroup'), _rows.transpose()); %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'headergroup'], options: _options}) %><% var _foreach = _rows; if( _foreach ) { for( var _i = 0; _i < _foreach.length; _i++ ) { object.each = _foreach[_i]; %><% calcexpressions(object.children.where('type', 'body'), object.each) %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'body'], options: _options}) %><% }} %><% calcexpressions(object.children.where('type', 'footergroup'), _rows.transpose()) %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'footergroup'], options: _options}) %> <% } %> <% } %><% if( object.renderoptions=='client' ) { %><% calcexpressions(object.children.where('type', 'footer'), object.result ? object.result.transpose() : null) %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'footer'], options: _options}) %><% } %><% if( object.renderoptions!='client' ) { %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'header'], options: mergearguments(_options, 'cansort=yes')}) %><% } %><% if( object.renderoptions!='client' ) { %><%= componentrenderchildren(this, 'html', {where: [['type', '!=', 'header'], ['type', '!=', 'footer'], ['position', '!=', 'title']], options: _options}) %><% } %><% if( object.renderoptions!='client' ) { %><%= componentrenderchildren(this, 'html', {where: ['type', '=', 'footer'], options: _options}) %><% } %>
<%= componentrenderchildren(this, 'html', {where: ['position', '=', 'bottom'], options: _options}) %>