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()

Method used for rendering the widget. Your class should override this method. The method is expected to create a this.$widget containing jQuery object
Inherited From:
Source:

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>