Back to Trilium

Class FAttribute

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

0.102.23.4 KB
Original Source

Class FAttribute

Attribute is an abstract concept which has two real uses - label (key - value pair) and relation (representing named relationship between source and target note)

Index

Constructors

constructor

Properties

attributeIdisInheritablenamenoteIdpositiontypevalue

Accessors

dtoisAutoLinktargetNoteIdtoString

Methods

getDefinitiongetNotegetTargetNoteisDefinitionisDefinitionForupdate

Constructors

constructor

new FAttribute(froca: Froca, row: FAttributeRow): FAttribute

Parameters

Returns FAttribute

Properties

attributeId

attributeId: string

isInheritable

isInheritable: boolean

name

name: string

noteId

noteId: string

position

position: number

type

type: AttributeType

value

value: string

Accessors

dto

get dto(): Omit<FAttribute, "froca">

Returns Omit<FAttribute, "froca">

get isAutoLink(): boolean

Returns boolean

targetNoteId

get targetNoteId(): string

Returns string

toString

get toString(): string

Returns string

Methods

getDefinition

getDefinition(): DefinitionObject

Returns DefinitionObject

getNote

getNote(): FNote

Returns FNote

getTargetNote

getTargetNote(): Promise<null | FNote>

Returns Promise<null | FNote>

isDefinition

isDefinition(): boolean

Returns boolean

isDefinitionFor

isDefinitionFor(attr: FAttribute): boolean

Parameters

  • attr: FAttribute

Returns boolean

update

update(row: FAttributeRow): void

Parameters

Returns void

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Constructors constructor Properties attributeIdisInheritablenamenoteIdpositiontypevalue Accessors dtoisAutoLinktargetNoteIdtoString Methods getDefinitiongetNotegetTargetNoteisDefinitionisDefinitionForupdate