ygleam/y_text
Values
pub fn decoder() -> decode.Decoder(y.Text)
pub fn doc(y_text: y.Text) -> option.Option(y.Doc)
pub fn format(
y_text: y.Text,
index: Int,
length: Int,
formattng_attributes: List(#(String, json.Json)),
) -> Nil
pub fn insert(
y_text: y.Text,
index: Int,
content: String,
formattng_attributes: option.Option(List(#(String, json.Json))),
) -> Nil
pub fn observe(
y_text: y.Text,
cb: fn(y_event.YTextEvent, y.Transaction) -> Nil,
) -> fn() -> Nil
pub fn observe_deep(
y_text: y.Text,
cb: fn(List(y_event.AnyYEvent), y.Transaction) -> Nil,
) -> fn() -> Nil
pub fn parent(y_text: y.Text) -> option.Option(dynamic.Dynamic)