package mosaic

  1. Overview
  2. Docs

Module Mosaic_mlx.TreeSource

Companion types for the tree widget.

type item = Mosaic_ui.Tree.item = {
  1. label : string;
    (*

    Display text for the node.

    *)
  2. children : item list;
    (*

    Child nodes (empty for leaves).

    *)
}

The type for tree nodes.

val item : ?children:item list -> string -> item

item label is a tree node with label. children defaults to [].