<% if( object.title != '' ) { %>
<% if( object.icon != '' ) { %><% } %>$title
<%= componentrenderchildren(this, 'html', {where: ['position', '=', 'title'], options: _options}) %><% 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) %><% } %><% if( !object.mode || object.mode == 'table' ) { %>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, object.result ? object.result.transpose() : null) %><%= componentrenderchildren(this, 'html_header', {type: 'ff:data', where: ['or', ['behaviour', '=', 'visible'], ['behaviour', '=', 'visible-ontable'], ['behaviour', '=', '']], 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); %> <% if( !object.datasource ) { %><% var _foreach = _rows; if( _foreach ) { for( var _i = 0; _i < _foreach.length; _i++ ) { object.each = _foreach[_i]; %><% calcexpressions(object.children.where('_type', 'ff:data'), object.each) %><%= componentrenderchildren(this, 'html_td', {where: ['position', '!=', 'title'], options: _options}) %><% }} %><% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html_tr', {where: ['_type', '=', 'ff:record'], options: _options}) %><% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html_tr', {where: ['_type', '=', 'ff.record'], options: _options}) %><% } %> <% } %> <% } %><% if( object.renderoptions=='client' ) { %><% calcexpressions(object.children, object.result ? object.result.transpose() : null) %><%= componentrenderchildren(this, 'html_footer', {where: ['_type', '=', 'ff:data'], options: _options}) %><% } %><% if( object.renderoptions!='client' ) { %><%= componentrenderchildren(this, 'html_header', {type: 'ff:data', where: ['or', ['behaviour', '=', 'visible'], ['behaviour', '=', 'visible-ontable'], ['behaviour', '=', '']], options: _options}) %><% } %><% if( object.renderoptions!='client' ) { %><% if( !object.datasource ) { %><%= componentrenderchildren(this, 'html_td', {where: ['_type', '=', 'ff:data'], options: _options}) %><% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html_tr', {where: ['_type', '=', 'ff:record'], options: _options}) %><% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html_tr', {where: ['_type', '=', 'ff.record'], options: _options}) %><% } %><% } %><% if( object.renderoptions!='client' ) { %><%= componentrenderchildren(this, 'html_footer', {where: ['position', '!=', 'title'], where: ['_type', '=', 'ff:data'], options: _options}) %><% } %>
<% } %><% if( object.mode == 'card' ) { %>
<% if( object.renderoptions!='client' ) { %>
<% if( !object.datasource ) { %>
<%= componentrenderchildren(this, 'html', {where: ['_type', '=', 'ff:data'], options: _options}) %>
<% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html', {where: ['_type', '=', 'ff:record'], options: _options}) %><% } %><% if( object.datasource ) { %><%= componentrenderchildren(this, 'html', {where: ['_type', '=', 'ff.record'], options: _options}) %><% } %>
<% } %>
<% } %>
<%= componentrenderchildren(this, 'html', {where: ['position', '=', 'bottom'], options: _options}) %>