Class: NoteContextAwareWidget

NoteContextAwareWidget()

This widget allows for changing and updating depending on the active note.

Constructor

new NoteContextAwareWidget()

Source:

Extends

Members

hoistedNoteId

Source:

note

Source:

noteContext :NoteContext

Type:
  • NoteContext
Source:

noteId

Source:

notePath

Source:

Methods

cssBlock(block) → {this}

Accepts a string of CSS to add with the widget.
Parameters:
Name Type Description
block string
Inherited From:
Source:
Returns:
for chaining
Type
this

doRender() → {JQuery.<HTMLElement>}

Method used for rendering the widget. Your class should override this method.
Inherited From:
Source:
Returns:
Your widget.
Type
JQuery.<HTMLElement>

isEnabled() → {boolean}

Source:
Returns:
true when an active note exists
Type
boolean

(async) refreshWithNote(note) → {Promise.<void>}

Override this method to be able to refresh your widget with each note.
Parameters:
Name Type Description
note FNote
Source:
Returns:
Type
Promise.<void>