1. /**
  2. * This is my example module
  3. * @module ExampleModule
  4. * @example
  5. *
  6. * var bar;
  7. *
  8. */
  9.  
  10. YUI.add('examplemodule', function (Y) {
  11. Y.namespace('mywidget');
  12. /**
  13. * <b>Superclass</b> description.<br>This is a second line too.
  14. *
  15. * @constructor
  16. * @class SuperWidget
  17. * @extends Widget
  18. * @namespace mywidget
  19. * @example
  20. *
  21. * var bar;
  22. *
  23. */
  24. Y.mywidget.superwidget = Y.Base.create("mysuperwidget", Y.Widget, [], {
  25. /**
  26. * <b>Supermethod</b> description.<br>This is a second line.
  27. *
  28. * @method myMethod
  29. * @async
  30. * @example
  31. *
  32. * var bar;
  33. *
  34. */
  35. myMethod: function () {}
  36. /**
  37. * Overwritten method see {{#crossLink "mywidget.SuperWidget"}}{{/crossLink}}
  38. * also see {{#crossLink "mywidget.SuperWidget/myMethod"}}{{/crossLink}}
  39. * This is also a test
  40. * @method getTargets2
  41. * @example
  42. *
  43. * var bar;
  44. *
  45. */
  46.  
  47. /**
  48. * Overwritten method see {{#crossLink "mywidget.SuperWidget"}}{{/crossLink}}
  49. * also see {{#crossLink "mywidget.SuperWidget/myMethod"}}{{/crossLink}}
  50. * This is also a test
  51. *
  52. * ```javascript
  53. *
  54. * var test = "hello from a code block!";
  55. *
  56. * ```
  57. *
  58. * @method getTargets3
  59. * @demo inherit/getTargets3.js
  60. */
  61.  
  62. /**
  63. * Override Attribute
  64. * @attribute focused2
  65. * @optional
  66. */
  67.  
  68. /**
  69. * Override Attribute
  70. * @attribute focused3
  71. * @required
  72. * @example
  73. * {
  74. * a:1
  75. * }
  76. */
  77.  
  78. /**
  79. * Override Property
  80. * @property name2
  81. * @type String
  82. */
  83.  
  84. /**
  85. * Override Event
  86. * @event init2
  87. * @param {object} opt options
  88. * @example
  89. * var a = '';
  90. */
  91. init2 : function(opt){
  92.  
  93. }
  94. }, {
  95. });
  96. /**
  97. * Subclass description.
  98. *
  99. * @constructor
  100. * @namespace mywidget
  101. * @class SubWidget
  102. * @extends mywidget.SuperWidget
  103. */
  104. Y.mywidget.superwidget = Y.Base.create("mysuperwidget", Y.mywidget.superwidget, [], {
  105. /**
  106. * Submethod description.
  107. *
  108. * @method myMethod
  109. * @param {boolean} d Foo
  110. */
  111. myMethod: function () {}
  112. }, {
  113. });
  114.  
  115. /**
  116. * Subclass description.
  117. *
  118. * @constructor
  119. * @namespace mywidget
  120. * @class SubWidget2
  121. * @extends Accordion
  122. */
  123. });
  124.  
Top