setPosition - Methods - Annotations API

Annotations API Methods

setPosition()

Set the screen position of the sticky note in context. Can be a value in pixels or a percentage (append '%' or 'px' to the values, respectively).

Examples

const myNote = itemsApp.assessApp().annotationsApp().module('stickynote').addNote();

myNote.setPosition('30%','30%');
myNote.setPosition('100px','100px');

Arguments

  • x string

  • y string

Return value

None (undefined).

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.