Replies: 4 comments 2 replies
-
The table component requires a small update to be able to accept a stream instead of a list. For the state handling, I don't have any insights yet. Once I've had the time to explore this, I'll add an example to the docs. |
Beta Was this translation helpful? Give feedback.
-
I opened a draft PR with the necessary changes. I added some comments you may find helpful. #176 |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks for quick response.
I think it is worthed in a specific case. Especially when you have to using
liveview with thousand rows of data and infinite scrolling table is not the
option for such situation.
Thanks.
…On Sat, Feb 25, 2023, 22:48 Mathias Polligkeit ***@***.***> wrote:
I opened a draft PR with the necessary changes. I added some comments you
may find helpful. #176 <#176>
—
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAG3BXQRSKFU5PDESGN7Z3WZISUNANCNFSM6AAAAAAVH3AL5A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have a few Flop tables with streams, and everything is working well except for empty streams. I tried adding the In a non-flop table, I have this code to handle empty lists and streams: <tr
:if={@rows == [] or (is_struct(@rows, LiveStream) and @rows.inserts == [])}
id="table-empty-row"
>
<% colspan = if @actions, do: length(@col) + 1, else: length(@col) %>
<td colspan={colspan} class="bg-gray-50 text-center align-middle py-4 rounded-b-lg">
No records
</td>
</tr> I would be happy to open a PR for this if you'd like. |
Beta Was this translation helpful? Give feedback.
-
hi @woylie,
is there any suggestion how to handle flop phoenix with liveview streams ?
Beta Was this translation helpful? Give feedback.
All reactions