ygleam/y_text

Functions

pub fn decoder() -> Decoder(Text)
pub fn delete(y_text: Text, index: Int, length: Int) -> Nil
pub fn doc(y_text: Text) -> Option(Doc)
pub fn format(
  y_text: Text,
  index: Int,
  length: Int,
  formattng_attributes: List(#(String, Json)),
) -> Nil
pub fn insert(
  y_text: Text,
  index: Int,
  content: String,
  formattng_attributes: Option(List(#(String, Json))),
) -> Nil
pub fn length(y_text: Text) -> Int
pub fn new() -> Text
pub fn observe(
  y_text: Text,
  cb: fn(YTextEvent, Transaction) -> Nil,
) -> fn() -> Nil
pub fn observe_deep(
  y_text: Text,
  cb: fn(List(AnyYEvent), Transaction) -> Nil,
) -> fn() -> Nil
pub fn parent(y_text: Text) -> Option(Dynamic)
pub fn to_json(y_text: Text) -> Json
pub fn to_string(y_text: Text) -> String
Search Document