So I was thinking of using a bootstrap table.
Pretty easy for the rows with a repeat row but how should I handle the dynamic column range (30/31 days per month)
I'm using a 3rd party api for the data and their output looks like this:
So I could easily do a repeat column by day for each row (listing).
But that would mean if I have for exemple 10 listings. I would have 10 repeat rows with each 30 repeat columns.
Would that be an issue or a mistake performance wise ?
But, there would most likely be a performance issue after a point. Trying to reduce number of rows shown at a time via paging and managed use of formatters on page will help keeping performance in check.
better to show the calendar for one list at a time. this way your repeat is limited to 31 items max and IMO this is better UX - 10*31 items is too much data to consume for the end user to make sense comfortably.
maybe as a compare you may have 2 or max 3 sets of this calendar. which controls the performance issues and also allows for better UX.
So in the same row I have the id of the object and a cell for each day with the price.
I was thinking of doing that:
<table class="table">
<thead>
<tr>
<th>Annonce</th>
</tr>
</thead>
<tbody is="dmx-repeat" dmx-generator="bs4table" dmx-bind:repeat="getAnnoncesPrices.data.getAnnoncesPrices.data" id="tableRepeat2">
<tr>
//first cell with the key
<td dmx-text="$key">
</td>
//second cell is a repeat of cells for each day
<td is="dmx-repeat" dmx-bind:repeat="$value" dmx-text="price">
</td>
</tr>
</tbody>
</table>
But that doesn't work, the only thing that seems to work is to have two rows