Skip to content

TextElement

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  3224889845["v2_protocol.TextElement"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 3224889845
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class TextElement(CodexBaseModel):
    byte_range: ByteRange
    """
    Byte range in the parent `text` buffer that this element occupies.
    """
    placeholder: str | None = None
    """
    Optional human-readable placeholder for the element, displayed in the UI.
    """

byte_range instance-attribute

byte_range: ByteRange

Byte range in the parent text buffer that this element occupies.

placeholder class-attribute instance-attribute

placeholder: str | None = None

Optional human-readable placeholder for the element, displayed in the UI.

:fa-brands-github: Show source on GitHub