我正在嘗試與angular-ui的手風琴混合使用表格,但我無法想出辦法做到這一點。 我不是專業人員,寫指令。我想知道這座橋是否存在。爲了實現這樣的事情:用Angular-UI手風琴混合表格
<table class="table table-hover table-condensed" thead>
<thead>
<tr>
<th>{{ data.profile.firstname }}</th>
<th>{{ data.profile.lastname }}</th>
<th>{{ data.profile.email }}</th>
<th>{{ data.profile.company_name }}</th>
<th>{{ data.profile.city }}</th>
</tr>
</thead>
<tbody accordion close-others="true">
<!-- <tr ng-repeat="client in clients" ng-click="goTo('profile/' + client.username);"> -->
<tr ng-repeat="client in clients" accordion-group is-open="client.isOpen">
<accordion-heading>
<td>{{ client.firstname }}</td>
<td>{{ client.lastname }}</td>
<td>{{ client.email }}</td>
<td>{{ client.company_name }}</td>
<td>{{ client.city }}</td>
</accordion-heading>
Accordion Content
</tr>
</tbody>
</table>
雖然它不工作:(是否有任何人誰succeded實現這樣的
我在尋找的結果是,當我點擊一條線表,它手風琴的相同的行爲
爲了確保只有一個手風琴保持開放的時間,在你按Ctrl聲明本(由下面Mohideen·本·穆罕默德·啓發) 然後,你可以做這樣的事情(你可以使用l2等額外的水平):