Contenido v1.0.0

Scroll infinito

Carga automáticamente más contenido al desplazarse cerca del final de un contenedor. Funciona naturalmente con Turbo Frames para una integración fluida con Rails. Soporta carga automática mediante IntersectionObserver y modo de botón "Cargar más" manual.

Vista Previa y Código

Opciones

Nombre Tipo Predeterminado Descripción
url * String requerido URL to fetch the next page of content
threshold Integer 200 Pixels from bottom to trigger loading
loading_text String "Loading..." Text shown while loading
end_text String "No more items" Text shown when all content loaded
mode Symbol :auto :auto (IntersectionObserver) or :manual (button)
turbo_frame String Target Turbo Frame ID for content insertion
button_text String "Load More" Button text for manual mode
ended Boolean false Whether all content has been loaded

Registro de Cambios v1.0.0

- v1.0.0: Initial release with auto and manual modes

Obtener Acceso Completo

Desbloquea el código fuente de este componente y todos los demás. Un solo pago para acceso de por vida.

Obtener Acceso