ListingListing component for displaying a list of items with optional filtering by tags, sorting, and different display styles. Inspired by Drupal's Views module.
type ('item, 'tag) content_type = {items : 'item list;render : 'item -> display -> Html_types.flow5 Tyxml_html.elt;tag_equal : 'tag -> 'tag -> bool;}type ('item, 'tag) config = {heading : string option;content_type : ('item, 'tag) content_type;display : display;maximum_items : int;sort_by : 'item sort_by;}val make :
?heading:string ->
?tags:'a tags ->
content_type:('b, 'a) content_type ->
display:display ->
maximum_items:int ->
sort_by:'b sort_by ->
unit ->
tval filter_by_tags :
extract_tags:('a -> 'b list) ->
eq:('c -> 'b -> bool) ->
tags:'c tags option ->
'a list ->
'a listval display_class : display -> stringval render : t -> [> Html_types.div ] Tyxml.Html.elt