Skip to content

ruzzll-zz/jquery-stickynotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-stickynotes

How to use

  1. First instance the object
var stickyNotes = $('.container').stickyNotes({
    removed: function (noteId){
        // do something
    },
    
    edited: function (note){
        // do something
    },
    
    moved: function (note){
        // do something
    },
    
    resized: function (note){
        // do something
    }
});
  1. then, add button event
$('.add-note').on('click', function (e){
    e.preventDefault();
    
    stickyNotes.create();
});

Other options available:
'resizable' (false) when true allows notes to be resized
'draggable' (true) when true allows notes to be dragged
'bgImage' (img/sticky/sticky-bg.png) allows using a custom background, or by disable image background (in favor of css)

Releases

No releases published

Packages

No packages published