CalendarFx.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.widget.CalendarFx"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.widget.CalendarFx"] = true;
  8. dojo.provide("dojox.widget.CalendarFx");
  9. dojo.require("dojox.widget.FisheyeLite");
  10. dojo.declare("dojox.widget._FisheyeFX",null, {
  11. // summary
  12. // A mixin to add a FisheyeLite effect to the calendar
  13. addFx: function(query, fromNode) {
  14. //Use the query and base node passed from the calendar view mixin
  15. //to select the nodes to attach the event to.
  16. dojo.query(query, fromNode).forEach(function(node){
  17. new dojox.widget.FisheyeLite({
  18. properties: {
  19. fontSize: 1.1
  20. }
  21. }, node);
  22. });
  23. }
  24. });
  25. dojo.declare("dojox.widget.CalendarFisheye",
  26. [dojox.widget.Calendar,
  27. dojox.widget._FisheyeFX], {
  28. // summary: The standard Calendar. It includes day, month and year views.
  29. // FisheyeLite effects are included.
  30. }
  31. );
  32. }