<div *class="accordion"*>
<div *ng-repeat*="record in vm.records.Data">
<table>
<tbody>
<tr>
<td>Last Updated</td>
<td>{{ record.*UpdatedDtTm* }}</td>
</tr>
<tr>
........... more rows, 1 row for each field
</tr>
</table>
</div
<div>
This guy here thinks the html for the table can be defined as:
<div *class="accordion"*>
<accordionDIRECTIVE>
.......... with the table code pieced together with javascript as the
ui-grid.js file does the Bootstrap grid
</accordionDIRECTIVE>
<div>
then the columns defined in javascript:
columns:[ //define the table columns
{title:"Last Updated", field:"*UpdatedDtTm*"},
............. etc
],
I can find no code any where that does this type of thing.
If you have done this and can show me it would be swift!
I hope this is clear :)
Thanks.
On Wednesday, July 24, 2019 at 12:34:44 PM UTC-5, Tito wrote:
>
> hey Howard.
>
> Can you post your code somewhere out there like plunkr ? I have been able
> to do this if I understand your question.
>
> On Wednesday, July 24, 2019 at 9:56:01 AM UTC-7, howard taylor wrote:
>>
>> Angular includes a javascript library for a Grid Directive (ui-grid.js)
>> and it is a time saver but there isn’t one for an Accordion that contains a
>> table. I see examples in various places where people “claim” their code is
>> a Directive but their code is just a Bootstrap Accordion with a table
>> inside it. In other words there is no javascript that reads a table
>> definition and renders the table with a record in it in each Accordion line
>> item.
>>
>>
>> In addition I have searched 3rd party vendors and none of them I have
>> seen offer this kind of Directive.
>>
>>
>> This makes me think this cannot be easily done and is not worth the time
>> and effort or it just can’t be done.
>>
>>
>> Does any one have any input on this? I have a rather difficult person
>> breathing down my neck over this and they cannot accept that perhaps this
>> is not the way to go or that it is not possible without expending many
>> hours of development for little bang.
>>
>>
>> BTW - this shop is in the stone age using Angular 1.5.8 in a .net
>> environment.
>>
>>
>> Thanks
>>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/ec52d79c-c83f-448d-b692-cc666b43e82e%40googlegroups.com.