Module Bonsai_tui_tree_view

type 'a t =
  1. | Leaf of 'a
  2. | Branch of 'a * 'a t list
  3. | Split of 'a t list
val render : ?layout_attrs:Bonsai_term.Attr.t list -> Bonsai_term.View.t t -> Bonsai_term.View.t

Composes a tree of views into a single view

val of_expectree : Expectree.t -> string t

Converts an expectree tree into a Bonsai_tui_tree_view.t tree

val of_expectree_with_conv : ?attrs:Bonsai_term.Attr.t list -> Expectree.t -> Bonsai_term.View.t t

Like of_expectree but it will convert the strings into View.t by using View.text ?attrs on all the text nodes.