简体   繁体   中英

Collapsible Column table

We want to create the collapsible column table using bootstrap and angularjs. This collapsing shouldn't be like toggle but rather like vertical accordion. If any reference of this type of table is available then please provide.

在此处输入图片说明

You can use ng-repeat to create tables with single column.

<table  ng-repeat="employee in employees track by $index" 
 ng-init="colIndex = $index">
  <tr ng-repeat='info in employee track by $index' 
   ng-init="rowIndex = $index" 
   ng-click="rowIndex === 0 ? clicked(colIndex) : null" >
  </tr>
</table>

To see a demo of the collapsible table visit : https://codepen.io/Midhun1993/pen/mRVGjq/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM