package slipshow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module PreviewerSource

Sourcetype previewer

A previewer is meant for "live previewing without flickering".

To create a previewer, you need to provide an HTML element that contains exactly:

  • An iframe with the right-panel1 ID
  • An iframe with the right-panel2 ID.

When you have a previewer, you can preview a source. For the moment, it has to be a source: you cannot pass it a compiled file.

Sourceval create_previewer : ?initial_stage:int -> ?callback:(int -> unit) -> Brr.El.t -> previewer
Sourceval preview : previewer -> string -> unit
Sourceval preview_compiled : previewer -> Slipshow.delayed -> unit
OCaml

Innovation. Community. Security.