esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Filter box not show #854

Open khs123 opened 8 years ago

khs123 commented 8 years ago

I have a issue when using ng-table. I have a table display data. Code like this

<table ng-table="demo.tableParams" show-filter="true" class="table table-bordered table-striped">
      **<tr><td>Heading </td> <td>Heading </td> <td>Heading </td> <td>Heading </td></tr>**
      <tr ng-repeat="row in $data track by row.id">
        <td title="'Installation At'" filter="{installationAt: 'text'}" sortable="'installationAt'">{{row.installationAt}}</td>
        <td title="'Admin Email'" filter="{adminEmail: 'text'}" sortable="'adminEmail'">{{row.adminEmail}}</td>
        <td title="'Powered By'" filter="{poweredBy: 'text'}" sortable="'poweredBy'">{{row.poweredBy}}</td>
        <td title="'Powered By Icon'" filter="{poweredByIcon: 'text'}" sortable="'poweredByIcon'">{{row.poweredByIcon}}</td>
      </tr>
    </table>

If i have a row above row that ng-table generate , box filter not showing. If i remove my row , box filter will showing. How can i fix it ? Sr my English

cilerler commented 8 years ago

remove the following part **<tr><td>Heading </td> <td>Heading </td> <td>Heading </td> <td>Heading </td></tr>**