0
下面靜態示例有排序上名字,但在電子郵件列禁用排序:智能表:禁用列排序
<tr>
<th st-sort="firstName">first name</th>
<th>email</th>
</tr>
但是,我的專欄是動態的。所以我在ng-repeat
中創建動態列標題。其他列應該可排序或不能由isSortable
標誌決定。
<tr>
<th st-sort="column.isSortable" ng-repeat="column in columns">{{column.columnName}}</th>
</tr>
我如何只isSortable
的colums設置爲true
排序?
中嵌入這個邏輯上這是不是一個好稱呼。如果我的html在th元素內生長會怎樣? – Nitul