View Source Yex.XmlText (y_ex v0.6.3)
Extends Y.Text to represent a Y.Xml node.
Summary
Functions
The next sibling of this type. Is null if this is the last child of its parent.
The parent that holds this type. Is null if this xml is a top-level XML type.
The previous sibling of this type. Is null if this is the first child of its parent.
Types
@type delta() :: Yex.Text.delta()
Functions
@spec insert(t(), integer(), Yex.input_type()) :: :ok | :error
@spec insert(t(), integer(), Yex.input_type(), map()) :: :ok | :error
@spec next_sibling(t()) :: Yex.XmlElement.t() | t() | nil
The next sibling of this type. Is null if this is the last child of its parent.
@spec parent(t()) :: Yex.XmlElement.t() | Yex.XmlFragment.t() | nil
The parent that holds this type. Is null if this xml is a top-level XML type.
@spec prev_sibling(t()) :: Yex.XmlElement.t() | t() | nil
The previous sibling of this type. Is null if this is the first child of its parent.