Liking cljdoc? Tell your friends :D

ripley.live.collection

A live component that handles a collection of entities. Optimizes rerenders to changed entities only.

A live component that handles a collection of entities.
Optimizes rerenders to changed entities only.
raw docstring

default-loading-indicatorclj

(default-loading-indicator)
source

infinite-scrollclj

(infinite-scroll {:keys [render container-element child-element next-batch
                         immediate? render-loading-indicator]
                  :or {container-element :span
                       child-element :span
                       immediate? true
                       render-loading-indicator default-loading-indicator}})
source

live-collectionclj

(live-collection {:keys [render key source container-element item-source-fn]
                  :or {container-element :span item-source-fn identity}})

Render a live-collection that automatically inserts and removes new items as they are added to the source.

This can be used to render eg. tables that have dynamic items.

Options:

:render Function to render one entity, takes the entity as parameter

:key Function to extract entity identity (like an :id column). Key is used to determine if item is already in the collection

:source The source that provides the collection.

:container-element Keyword for the container HTML element (defaults to :span). Use :tbody when rendering tables.

:item-source-fn Optional function to pass each source generated for individual items through. This is useful if you want to make computed sources for items that consider some additional data as well.

Render a live-collection that automatically inserts and removes
new items as they are added to the source.

This can be used to render eg. tables that have dynamic items.

Options:

:render  Function to render one entity, takes the entity as parameter

:key     Function to extract entity identity (like an :id column).
         Key is used to determine if item is already in the collection

:source  The source that provides the collection.

:container-element
         Keyword for the container HTML element (defaults to :span).
         Use :tbody when rendering tables.

:item-source-fn
         Optional function to pass each source generated for individual
         items through.
         This is useful if you want to make computed sources for items
         that consider some additional data as well.


sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close