Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs ng表格标题中的排序箭头出现问题_Angularjs_Ngtable - Fatal编程技术网

Angularjs ng表格标题中的排序箭头出现问题

Angularjs ng表格标题中的排序箭头出现问题,angularjs,ngtable,Angularjs,Ngtable,我对ng表格标题有一个问题:排序箭头不显示。分拣工作正常 第一行仅用于分组。 在本例中,数据按ID排序,但指示排序顺序的箭头未显示 模板标题代码: <script type="text/ng-template" id="header_template.html"> <tr> <th colspan="2"></th> <th colspan="3&q

我对ng表格标题有一个问题:排序箭头不显示。分拣工作正常

第一行仅用于分组。 在本例中,数据按ID排序,但指示排序顺序的箭头未显示

模板标题代码:

<script type="text/ng-template" id="header_template.html">
 
   <tr>
   <th colspan="2"></th>

   <th colspan="3">Gross</th>
   </tr>
   <tr>

  <th ng-repeat="column in columns" 
      class="text-center sortable" ng-class="{
                      'sorting' : column.field,
                     'sort-asc': fundTableParam.isSortBy(column.field, 'asc'),
                     'sort-desc': fundTableParam.isSortBy(column.field, 'desc')
        }"

      ng-click="fundTableParam.sorting(column.field, fundTableParam.isSortBy(column.field, 'asc') ? 'desc' : 'asc')">
      {{column.title}}
      
       
 
  </th>
  </tr>
   
    <tr ng-show="show_filter" class="ng-table-filters">
    <th ng-repeat="column in columns"  class="filter">
        <div ng-repeat="(name, filter) in column.filter">
            <div ng-if="column.filterTemplateURL" ng-show="column.filterTemplateURL">
              <div ng-include="column.filterTemplateURL"></div>
            </div>
            <div ng-if="!column.filterTemplateURL" ng-show="!column.filterTemplateURL">
                <div ng-include="'ng-table/filters/' + filter + '.html'"></div>
            </div>
        </div>
    </th>
</tr>



  

粗俗的
{{column.title}}

知道为什么会发生这种情况吗?

可能是您缺少CSS

<link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css">

可能是您缺少CSS

<link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css">