Promote flowsheet view filtered rows into sticky header

This commit is contained in:
Jiang Yio 2024-03-24 06:41:21 -05:00
parent ed90f64076
commit b6ba225e3d

View File

@ -258,9 +258,7 @@
</th> </th>
{#each component_groups as group, idx}<th class="date" class:first={ (idx == 0) || (group.key != component_groups[idx - 1].key) }><div class="year">{group.datestr.substring(0, 4)}</div><div class="monthdate">{group.datestr.substring(5)}</div>{#if false}<div class="hourminute daily">{datetime_timestr(group.values[0]._ts)}</div>{/if}</th>{/each} {#each component_groups as group, idx}<th class="date" class:first={ (idx == 0) || (group.key != component_groups[idx - 1].key) }><div class="year">{group.datestr.substring(0, 4)}</div><div class="monthdate">{group.datestr.substring(5)}</div>{#if false}<div class="hourminute daily">{datetime_timestr(group.values[0]._ts)}</div>{/if}</th>{/each}
</tr> </tr>
</thead> {#if pattern}
{#if pattern}
<tbody>
{#each component_names as name} {#each component_names as name}
{#if filter_test(pattern, name)} {#if filter_test(pattern, name)}
<tr class="match"> <tr class="match">
@ -271,8 +269,10 @@
</tr> </tr>
{/if} {/if}
{/each} {/each}
</tbody> {/if}
<tbody> </thead>
<tbody>
{#if pattern}
{#each component_names as name} {#each component_names as name}
{#if !filter_test(pattern, name)} {#if !filter_test(pattern, name)}
<tr> <tr>
@ -283,9 +283,7 @@
</tr> </tr>
{/if} {/if}
{/each} {/each}
</tbody> {:else}
{:else}
<tbody>
{#each component_names as name} {#each component_names as name}
<tr> <tr>
<th>{name}</th> <th>{name}</th>
@ -294,8 +292,8 @@
{/each} {/each}
</tr> </tr>
{/each} {/each}
</tbody> {/if}
{/if} </tbody>
</table> </table>
</div> </div>
</div> </div>