package bogue

  1. Overview
  2. Docs

Module Bogue.Text_displaySource

Multi-line text display widget.

Dependency graph
Sourcetype t
Sourcetype words

Preparing the text

Sourceval example : words
Sourceval raw : string -> words
Sourceval bold : words -> words
Sourceval italic : words -> words
Sourceval normal : words -> words
Sourceval underline : words -> words
Sourceval strikethrough : words -> words
Sourceval page : words list -> words list
Sourceval para : string -> words
Sourceval paragraphs_of_string : string -> words list

Creating the widget

Use Widget.text_display or Widget.verbatim for plain text, or Widget.html for a richer display (bold, italics, color, etc.). You may also use Widget.rich_text for "rich text" (containing bold, italics, etc. using the functions listed above.)

Modifying the widget

Sourceval replace : by:t -> t -> unit

replace ~by:t2 t1 replaces the text content of t1 by the one of t2. See also Widget.get_text_display.

Sourceval update_verbatim : t -> string -> unit
OCaml

Innovation. Community. Security.