LexicalDTO
Datalayer Core / LexicalDTO
Class: LexicalDTO
Defined in: src/models/LexicalDTO.ts:139
Lexical domain model that extends the base Item class. Provides lexical document functionality for managing rich text documents.
Example
const lexical = await client.createLexical(formData);
await lexical.update({ name: 'Updated Documentation' });
Extends
Constructors
Constructor
new LexicalDTO(
data,client):LexicalDTO
Defined in: src/models/LexicalDTO.ts:146
Create a Lexical instance.
Parameters
data
Lexical data from API
client
Client instance
Returns
LexicalDTO
Overrides
Properties
_data
protected_data:LexicalData
Defined in: src/models/ItemDTO.ts:23
Inherited from
Accessors
content
Get Signature
get content():
any
Defined in: src/models/LexicalDTO.ts:182
The cached content.
Returns
any
Overrides
createdAt
Get Signature
get createdAt():
Date
Defined in: src/models/ItemDTO.ts:105
When the item was created.
Returns
Date
Inherited from
description
Get Signature
get description():
string
Defined in: src/models/LexicalDTO.ts:195
Description of the lexical document.
Returns
string
extension
Get Signature
get extension():
string
Defined in: src/models/LexicalDTO.ts:201
Get the document extension.
Returns
string
id
Get Signature
get id():
string
Defined in: src/models/ItemDTO.ts:63
Item ID.
Returns
string
Inherited from
isDeleted
Get Signature
get isDeleted():
boolean
Defined in: src/models/ItemDTO.ts:42
Check if this item has been deleted.
Returns
boolean
Inherited from
name
Get Signature
get name():
string
Defined in: src/models/LexicalDTO.ts:161
The cached name of the document.
Returns
string
Overrides
ownerId
Get Signature
get ownerId():
string
Defined in: src/models/ItemDTO.ts:97
Owner user ID.
Returns
string
Inherited from
spaceId
Get Signature
get spaceId():
string
Defined in: src/models/ItemDTO.ts:75
Parent space ID.
Returns
string
Inherited from
type
Get Signature
get type():
string
Defined in: src/models/LexicalDTO.ts:155
Document type identifier.
Returns
string
Overrides
uid
Get Signature
get uid():
string
Defined in: src/models/ItemDTO.ts:69
Unique identifier for the item.
Returns
string
Inherited from
updatedAt
Get Signature
get updatedAt():
Date
Defined in: src/models/ItemDTO.ts:118
The cached update time.
Returns
Date
Inherited from
Methods
_checkDeleted()
protected_checkDeleted():void
Defined in: src/models/ItemDTO.ts:50
Check if this item has been deleted and throw error if so.
Returns
void
Throws
Error if deleted
Inherited from
_getSpacerRunUrl()
protected_getSpacerRunUrl():string
Defined in: src/models/ItemDTO.ts:251
Get spacer API URL for API calls.
Returns
string