我正在尝试与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等额外的水平):