Class Text

Less than 1 minute

Class Text

Declared in packages/core/echo/echo-schema/dist/types/src/text-object.d.ts:4

Base class for all echo objects. Can carry different models.

Constructors

constructor([text], [kind], [field])

Returns: Text

Arguments:

text: string

kind: TextKind

field: string

Properties

[base]

Type: Text

Proxied object.

[db]

Type: undefined | EchoDatabase

Database reference if bound.

content

Type: undefined | YText | YXmlFragment

doc

Type: undefined | Doc

id

Type: string

ID accessor.

kind

Type: undefined | TextKind

model

Type: undefined | TextModel

text

Type: string

Returns the text content of the object.

Methods

_afterBind()

Returns: void

Arguments: none

_itemUpdate()

Returns: void

Arguments: none

toJSON()

Returns: object

Arguments: none

toString()

Returns: string

Arguments: none