Class Widget.widget_with_error_box
class widget_with_error_box : object..end
method error_class : string
method bind_or_display_error :
'data 'a.
'data Lwt.t ->
('data ->
(Html5_types.nmtoken list *
([> Html5_types.p ] as 'a) Eliom_content.Html5.F.elt list)
Lwt.t) ->
(Html5_types.nmtoken list * 'a Eliom_content.Html5.F.elt list) Lwt.t
Takes a thread that gets data (e.g. from a database), then a function that transforms this data into something printable of type flows, then a function that will build the box with the result, and/or possibly also error messages if something went wrong during data retrieval.
method display_error_box :
'b.
?classes:string list ->
?message:string ->
?exc:exn -> unit -> ([> `P ] as 'b) Eliom_content.Html5.F.elt