Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ch7_infinite_scroll question#7

scornickccv started this conversation inIdeas
Discussion options

Could this be adapted to update a table with additional rows upon an htmx call?

I am having a problem with the proper containers because of the nested render_partials. Everything after the first page does not get inserted properly into the original table......

Thank you for any thoughts....

{% for v in videos %}

<div>    <div><span>{{ v.title }}</span></div>    <a href="/videos/play/{{ v.id }}">        {{ render_partial('shared/partials/_video_image.html', video=v) }}    </a></div>

{% endfor %}

{% if has_more_videos %}

<div     hx-get="/feed/more_videos/{{ (page+1) }}"     hx-trigger="revealed"     hx-swap="outerHTML">    <img src=""/></div>

{% endif %}

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
1 participant
@scornickccv

[8]ページ先頭

©2009-2025 Movatter.jp