AbstractProtectedattrsOptionalnoteOptionalparentSets the CSS attribute of the given name to the given value.
the name of the CSS attribute to set (e.g. padding-left).
the value of the CSS attribute to set (e.g. 12px).
self for chaining.
Method used for rendering the widget.
Your class should override this method. The method is expected to create a this.$widget containing jQuery object
promise resolving note data. Note data is an object with content.
By default:
activeContextChanged is intercepted and converted to a setNoteContext event to avoid refresh().entitiesReloaded and refreshData are passed as-is.Indicates if the widget is enabled. Widgets are enabled by default. Generally setting this to false will cause the widget not to be displayed, however it will still be available on the DOM but hidden.
If the widget is not enabled, it will not receive `refreshWithNote` updates.
true when an active note exists
Sets the CSS attribute of the given name to the given value, but only if the condition provided is truthy.
true in order to apply the CSS, false to ignore it.
the name of the CSS attribute to set (e.g. padding-left).
the value of the CSS attribute to set (e.g. 12px).
self for chaining.
Override this method to be able to refresh your widget with each note.
Optionaldata: CommandMappings[K]Staticget
The base class for all the note types.