Class: RightPanelWidget

RightPanelWidget()

This widget manages rendering panels in the right-hand pane.

Constructor

new RightPanelWidget()

Source:

Extends

Members

hoistedNoteId

Overrides:
Source:

note

Overrides:
Source:

noteContext :NoteContext

Type:
  • NoteContext
Overrides:
Source:

noteId

Overrides:
Source:

notePath

Overrides:
Source:

widgetTitle

Title to show in the panel.
Source:

Methods

cssBlock(block) → {this}

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

doRender()

Do not override this method unless you know what you're doing. Do not override this method unless you know what you're doing.
Overrides:
Source:

(async) doRenderBody() → {Promise|undefined}

Method used for rendering the body of the widget (via existing this.$body) Your class should override this method.
Source:
Returns:
if widget needs async operation to initialize, it can return a Promise
Type
Promise | undefined

isEnabled() → {boolean}

Overrides:
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
Overrides:
Source:
Returns:
Type
Promise.<void>