YsonTreeNode

data class YsonTreeNode(val type: String, val value: String? = null, val attrs: Map<String, String>? = null, val children: List<YsonTreeNode>? = null)

YsonTreeNode represents a node in a Tree CRDT.

A text node carries value. An element node carries attrs and/or children.

Parameters

type

Node type (for example text, p, div).

value

Text content for text nodes.

attrs

Element attributes.

children

Child element list.

Constructors

Link copied to clipboard
constructor(type: String, value: String? = null, attrs: Map<String, String>? = null, children: List<YsonTreeNode>? = null)

Properties

Link copied to clipboard
val attrs: Map<String, String>? = null
Link copied to clipboard
val children: List<YsonTreeNode>? = null
Link copied to clipboard
Link copied to clipboard
val value: String? = null