angular - Can't make Accordion and table work together -
so i'm trying make custom table can click part of row , additional field shows up. best way explain want show you.. view should this:
so table code looks this:
<table class="table message-table"> <thead> <tr> <th class="clickable">title</th> <th class="clickable">date</th> <th class="clickable">action</th> <th></th> </tr> </thead> <tbody> <tr *ngfor="let message of messages | paginate: config"> <td>{{message.title}}</td> <td>{{message.created | date:'longdate'}}</td> <td> <ngb-accordion [closeothers]="true"> <ngb-panel> <ng-template ngbpaneltitle>more</ng-template> <ng-template ngbpanelcontent>{{message.text}}</ng-template> </ngb-panel> </ngb-accordion> </td> <td></td> </tr> </tbody> </table>
and result view i'm getting:
could me combine accordion , table code, work?? want message.text same width entire row , wont corrupt row's height
wiki
Comments
Post a Comment