Skip to main content

Class Text

Less than 1 minute

Class Text

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

Constructors

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

Returns: Text

Arguments:

text: string

kind: TextKind

field: string

opts: AutomergeOptions

Properties

[base]

Type: Text

Proxied object.

_signal

Type: GenericSignal

[db]

Type: undefined | EchoDatabase

Database reference if bound.

[debug]

Type: string

content

Type: undefined | string

doc

Type: any

id

Type: string

ID accessor.

kind

Type: undefined | TextKind

model

Type: any

text

Type: string

Methods

[subscribe](callback)

Returns: function

Arguments:

callback: function

_afterBind()

Returns: void

Arguments: none

_emitUpdate()

Returns: void

Arguments: none

_itemUpdate()

Returns: void

Arguments: none

toJSON()

Returns: never

Arguments: none

toString()

Returns: never

Arguments: none

[hasInstance](instance)

Returns: boolean

Arguments:

instance: any