Notes Technical Reference

Summary

  • Notes are provided in Note section of Initial Adaptable State
  • Note Options allows developers to configure which Cells can receive Notes
  • Note API provides run time access to Notes

Note State

The Note State of Initial Adaptable State contains a collection of AdaptableNotes:

PropertyDescription
NotesCollection of AdapTable Notes

Adaptable Note

The full contents of the AdaptableNote object is as follows:

PropertyDescription
ColumnIdId of Column containing the Note
PrimaryKeyValueValue in Grid's Primary Key Column
TextContent of the Note
TimestampWhen Note was made
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Note Options

The Note Options section of Adaptable Options contains options to configure Note behaviour:

PropertyDescriptionDefault
dateFormatDate Format string for Notes timestamp'dd-MM-yyyy HH:mm:ss'
isCellNotableWhether a cell can contain Notes
showNoteActionWhether to show Notes by hovering (default) or via context menu'hover'
showPopupCloseButtonShow the Close Button in the Notes Popuptrue

Note API

Full programmatic access to Notes is available in Note API section of Adaptable API .

This enables Notes to be retrieved, created, edited and deleted programmatically.

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