- notes
The notes that are rendered initialy on the board.
Example:
var options = {notes:[{"id":1,
"text":"Test Internet Explorer",
"pos_x": 50,
"pos_y": 50,
"width": 200,
"height": 200,
}]}
jQuery("#notes").stickyNotes(options);
- resizable
-
A flag that defines whether the notes are resizeable.
Default value: true
Example:
var options = {resizable:false}
jQuery("#notes").stickyNotes(options);
- controls
A flag that defines whether the controlls (add note button) should be rendered.
Default value: true
Example:
var options = {controls:false}
jQuery("#notes").stickyNotes(options);
- editCallback
Callback function to be invoked after a note was edited.
Example:
var edited = function(note) {
alert("Edited note with id " + note.id + ", new text : " + note.text);
}
var options = {editCallback: edited}
jQuery("#notes").stickyNotes(options);
- createCallback
Callback function to be invoked after a note was created.
Example:
var created = function(note) {
alert("Created note with id " + note.id + ", text : " + note.text);
}
var options = {createCallback: created}
jQuery("#notes").stickyNotes(options);
- deleteCallback
Callback function to be invoked after a note was deleted.
Example:
var deleted = function(note) {
alert("Deleted note with id " + note.id + ", text : " + note.text);
}
var options = {deleteCallback: deleted}
jQuery("#notes").stickyNotes(options);
- moveCallback
Callback function to be invoked after a note was moved.
Example:
var moved = function(note) {
alert("Moved note with id " + note.id + ", text : " + note.text);
}
var options = {moveCallback: moved}
jQuery("#notes").stickyNotes(options);
- resizeCallback
Callback function to be invoked after a note was resized.
Example:
var resized = function(note) {
alert("Resized note with id " + note.id + ", text : " + note.text);
}
var options = {resizeCallback: resized}
jQuery("#notes").stickyNotes(options);