CalendarFx.js 892 B

123456789101112131415161718192021222324252627282930
  1. // wrapped by build app
  2. define("dojox/widget/CalendarFx", ["dijit","dojo","dojox","dojo/require!dojox/widget/FisheyeLite"], function(dijit,dojo,dojox){
  3. dojo.provide("dojox.widget.CalendarFx");
  4. dojo.require("dojox.widget.FisheyeLite");
  5. dojo.declare("dojox.widget._FisheyeFX",null, {
  6. // summary
  7. // A mixin to add a FisheyeLite effect to the calendar
  8. addFx: function(query, fromNode) {
  9. //Use the query and base node passed from the calendar view mixin
  10. //to select the nodes to attach the event to.
  11. dojo.query(query, fromNode).forEach(function(node){
  12. new dojox.widget.FisheyeLite({
  13. properties: {
  14. fontSize: 1.1
  15. }
  16. }, node);
  17. });
  18. }
  19. });
  20. dojo.declare("dojox.widget.CalendarFisheye",
  21. [dojox.widget.Calendar,
  22. dojox.widget._FisheyeFX], {
  23. // summary: The standard Calendar. It includes day, month and year views.
  24. // FisheyeLite effects are included.
  25. }
  26. );
  27. });