Provides run-time access to Notes Module and related State

TypeScript
export interface

Methods

MethodDescription
addNote(text, primaryKeyValue, columnId)Adds a new Note
deleteNote(note)Deletes a Note
editNote(note)Edits a Note
getAllNotes()Gets all Notes
getNoteByUuid(uuid)Returns a Note by uuid
getNoteForCell(cellAddress)Gets all Notes for a cell
getNoteState()Gets the Note State
updateNoteText(text, note)Edits text of a Note

Method Details

addNote

Adds a new Note

TypeScript
addNote(text: string, primaryKeyValue: any, columnId: string): void;
Parameters
ParameterTypeDescription
textstring
primaryKeyValueany
columnIdstring
Returns

void

deleteNote

Deletes a Note

TypeScript
deleteNote(note: AdaptableNote): void;
Parameters
ParameterTypeDescription
noteAdaptableNote
Returns

void

editNote

Edits a Note

TypeScript
editNote(note: AdaptableNote): void;
Parameters
ParameterTypeDescription
noteAdaptableNote
Returns

void

getAllNotes

Gets all Notes

TypeScript
getAllNotes(): AdaptableNotes;
Returns

AdaptableNotes

getNoteByUuid

Returns a Note by uuid

TypeScript
getNoteByUuid(uuid: string): AdaptableNote | undefined;
Parameters
ParameterTypeDescription
uuidstringnote uuid
Returns

AdaptableNote | undefined

getNoteForCell

Gets all Notes for a cell

TypeScript
getNoteForCell(cellAddress: CellAddress): AdaptableNote;
Parameters
ParameterTypeDescription
cellAddressCellAddressnote position
Returns

AdaptableNote

getNoteState

Gets the Note State

TypeScript
getNoteState(): NoteState;
Returns

NoteState

updateNoteText

Edits text of a Note

TypeScript
updateNoteText(text: string, note: AdaptableNote): void;
Parameters
ParameterTypeDescription
textstring
noteAdaptableNote
Returns

void