<table class="table table-striped table-layout-fixed" ng-class="{ 'width768' : !detailView }" bindonce>
|
<!-- 테이블 머리 -->
|
<thead>
|
<tr ng-if="hideHeader != true">
|
<th bindonce ng-repeat="tableConfig in tableConfigs"
|
bo-class="[tableConfig.hAlign, tableConfig.hWidth, tableConfig.dVisible]"
|
ng-click="!tableConfig.dName.contains('useValue') ? $root.$tableProvider.setOrderByColumn(tableConfig.dName) : $root.$tableProvider.setOrderByColumn(tableConfig.dName)"
|
bo-style="{ 'cursor' : tableConfig.dName != '' ? 'pointer' : '' }"
|
rowspan="{{tableConfig.rowSpan}}"
|
colspan="{{tableConfig.colSpan}}"
|
ng-if="!tableConfig.subHead">
|
<!-- 체크 박스일 경우 -->
|
<div bo-switch="tableConfig.dType">
|
<div bo-switch-when="checkbox">
|
<input type="checkbox" tabindex="-1" ng-model="tableConfig.hChecked" ng-click="$root.$tableProvider.toggleChecked(tableConfig.hChecked, fn.getResponseData())">
|
</div>
|
<div bo-switch-default>
|
<span ng-if="tableConfig.columnTooltip != ''" function-tool-tip data-placement="top" data-toggle="tooltip" data-original-title="{{tableConfig.columnTooltip}}"
|
translate="{{tableConfig.hName}}"></span>
|
<span ng-if="tableConfig.columnTooltip == ''" translate="{{tableConfig.hName}}"></span>
|
<span ng-if="($root.$tableProvider.orderByColumn == tableConfig.dName) && (tableConfig.dName != '')"><i class="fa fa-arrow-circle-down" ng-show="!$root.$tableProvider.reverse"></i>
|
<i class="fa fa-arrow-circle-up" ng-show="$root.$tableProvider.reverse"></i>
|
</span>
|
</div>
|
</div>
|
</th>
|
</tr>
|
</thead>
|
|
<tbody>
|
<tr ng-if="useSort != false" ng-repeat="row in fn.getResponseData() | orderBy:$root.$tableProvider.orderByColumn:$root.$tableProvider.reverse"
|
bo-class="[row.checked == true ? 'table-active' : '', tableConfig.hWidth]"
|
table-column-generator="row">
|
</tr>
|
|
<tr ng-if="useSort == false" ng-repeat="row in fn.getResponseData()"
|
bo-class="[row.checked == true ? 'table-active' : '', tableConfig.hWidth]"
|
table-column-generator="row">
|
</tr>
|
|
<tr ng-if="fn.getResponseData().length == 0">
|
<td colspan="{{tableConfigs.length}}">
|
<span translate="common.noData">데이터가 없습니다.</span>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|