stickynote:add
Triggered when a sticky note is created. Returns the payloadData object for the sticky note, containing the variables listed.
Examples
annotationsApp.on('stickynote:add', function (payloadData) {
console.log('Added a Sticky Note with an ID of ' + payloadData.id);
});
Callback arguments
-
collectionId stringA group of sticky notes is known as a collection. The collection id string will be populated from the name of the Item in context. Empty by default.
-
content stringThe text shown inside the sticky note. Empty by default.
-
expanded booleanThe window state of the sticky note. True = expanded. False = collapsed.
-
height numberThe vertical size of the sticky note window, in pixels.
-
id stringThe unique id of the sticky note that was created.
-
visible booleanThe visibility state of the sticky note. True = visible. False = invisible.
-
width numberThe horizontal size of the sticky note window, in pixels.
-
x stringThe horizontal position of the top left corner of the sticky note window, in percentage or pixels.
-
y stringThe vertical position of the top left corner of the sticky note window, in percentage or pixels.
Versioning
Version added: v2018.2.LTS