Back to Trilium

Class FAttachment

docs/Script API/classes/Frontend_Script_API.FAttachment.html

0.102.22.4 KB
Original Source

Class FAttachment

Attachment is a file directly tied into a note without being a hidden child.

Index

Constructors

constructor

Properties

attachmentIdcontentLengthisProtectedmimeownerIdroletitleutcDateModifiedutcDateScheduledForErasureSince

Methods

getBlobgetNoteupdate

Constructors

constructor

new FAttachment(froca: Froca, row: FAttachmentRow): FAttachment

Parameters

Returns FAttachment

Properties

attachmentId

attachmentId: string

contentLength

contentLength: number

optionally added to the entity

isProtected

isProtected: boolean

mime

mime: string

ownerId

ownerId: string

role

role: string

title

title: string

utcDateModified

utcDateModified: string

utcDateScheduledForErasureSince

utcDateScheduledForErasureSince: string

Methods

getBlob

getBlob(): Promise<null | void | default>

Returns Promise<null | void | default>

getNote

getNote(): FNote

Returns FNote

update

update(row: FAttachmentRow): void

Parameters

Returns void

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Constructors constructor Properties attachmentIdcontentLengthisProtectedmimeownerIdroletitleutcDateModifiedutcDateScheduledForErasureSince Methods getBlobgetNoteupdate