Skip to content

Commit de2155c

Browse files
authored
Merge pull request #10689 from jimchamp/list-carousel
Add new `QueryCarousel` options to `ListCarousel`
2 parents 77b8e07 + c9af1c3 commit de2155c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎openlibrary/macros/ListCarousel.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$def with (list_key, title=None, sort='new', key='', limit=20, has_fulltext_only=True, url=None, layout='carousel')
1+
$def with (list_key, title=None, sort='new', key='', limit=20, has_fulltext_only=True, url=None, layout='carousel', use_cache=True, lazy=True)
22

33
$# Takes following parameters
44
$# * list_key (str) -- A list key e.g. /people/mekBot/lists/OL104041L
@@ -9,5 +9,7 @@
99
$# * has_fulltext_only (bool) -- only include readable titles
1010
$# * url (str) -- whether to make title a link to url
1111
$# * layout (str) -- layout type, default 'carousel', currently also supports 'grid'
12+
$# * use_cache (bool) -- Attempt to use cached version if `True`
13+
$# * lazy (bool) -- Lazy load this carousel when `True`
1214

13-
$:macros.QueryCarousel(query=list_key, title=title, sort=sort, key=key, limit=limit, has_fulltext_only=has_fulltext_only, url=url, layout=layout)
15+
$:macros.QueryCarousel(query=list_key, title=title, sort=sort, key=key, limit=limit, has_fulltext_only=has_fulltext_only, url=url, layout=layout, use_cache=use_cache, lazy=lazy)

0 commit comments

Comments
 (0)