Module Types.CollectionNode

type 't t = 't t_collection_node

The type of item this node represents.

val type_ : 't t -> [ `section | `item ]

A unique key for the node.

The type of item this node represents.

val key : 't t -> string

The source object this node was created from.

A unique key for the node.

val raw_value : 't t -> 't

A string value for the node, used for features like typeahead.

The source object this node was created from.

val text_value : 't t -> string

Whether the node is disabled.

A string value for the node, used for features like typeahead.

val disabled : 't t -> bool

The level of depth this node is at in the hierarchy.

Whether the node is disabled.

val level : 't t -> float

The index of this node within its parent.

The level of depth this node is at in the hierarchy.

val index : 't t -> float

The key of the node before this node.

The index of this node within its parent.

val prev_key : 't t -> string option

The key of the node after this node.

The key of the node before this node.

val next_key : 't t -> string option

The key of the node after this node.

val make : type_:[ `section | `item ] -> key:string -> raw_value:'t -> text_value:string -> disabled:bool -> level:float -> index:float -> ?prev_key:string -> ?next_key:string -> unit -> 't t