Posted By

Iban on 02/04/11


Tagged

menu pie


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

virendrakryadav
sethetter


Pretty Pie Menu


 / Published in: jQuery
 

URL: http://www.cs.tut.fi/~laine9/demo/ppmenu/piedemo.html

  1. $(function() {
  2.  
  3. $("#area").prettypiemenu({
  4. buttons: [
  5. "ui-icon-minus",
  6. "ui-icon-plus",
  7. "ui-icon-close"
  8. ],
  9. onSelection: function(item) {
  10. alert (item + ' was clicked!');
  11. }
  12. });
  13.  
  14. $( "#testbtn" ).button({ icons: {primary:"ui-icon-gear"}, text: false })
  15. .click(function(event) {
  16. event.preventDefault();
  17. $("#area").prettypiemenu("show", {top: event.pageY, left: event.pageX});
  18. return false;
  19. });
  20. });

Report this snippet  

You need to login to post a comment.