PageRenderTime 26ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/wiki/TagDefault.wiki

http://jsdoc-toolkit.googlecode.com/
Unknown | 31 lines | 21 code | 10 blank | 0 comment | 0 complexity | df182888c311d8170f130ce693f8d415 MD5 | raw file
  1. #summary @default
  2. == The @default Tag ==
  3. The `@default` tag allows you to document the default value of an object, including fields of classes.
  4. === Syntax ===
  5. {{{
  6. @default valueDescription
  7. }}}
  8. * valueDescription - Required: a description of the default value.
  9. === Example ===
  10. {{{
  11. /** @constructor */
  12. function Page(title) {
  13. /**
  14. * @default "Undefined"
  15. */
  16. this.title = title || "Undefined";
  17. }
  18. }}}
  19. The `@default` tag is only recognized when applied to objects, it is not meaningful to use it with functions.
  20. === See Also ===
  21. * The [TagType @type] tag can be used to document the type of an object's value, or the type of a value returned by a function. Contrast this with `@default` which documents what the actual default value is.