【发布时间】:2014-12-22 16:50:48
【问题描述】:
我正在尝试将一张桌子与 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>
虽然它不起作用:(有没有人成功实现了这样的目标?
我正在寻找的结果是,当我单击表格中的一行时,它的行为与手风琴相同。
【问题讨论】:
标签: angularjs css angular-ui-bootstrap