Module View

type ('item, 'tag) t = {
  1. heading : string option;
  2. content_type : ('item, 'tag) Listing.content_type;
  3. display : Listing.display;
  4. maximum_items : int;
  5. sort_by : 'item Listing.sort_by;
  6. tags : 'tag Listing.tags option;
}
val make : ?heading:string -> ?tags:'a Listing.tags -> content_type:('b, 'a) Listing.content_type -> display:Listing.display -> maximum_items:int -> sort_by:'b Listing.sort_by -> unit -> ('b, 'a) t
val to_listing : ('a, 'b) t -> Listing.t
val to_component : ('a, 'b) t -> Component.t
val render : ('a, 'b) t -> [> `Div | `Footer | `Nav | `Section ] Tyxml.Html.elt