members.tmpl 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?js
  2. var data = obj;
  3. var self = this;
  4. ?>
  5. <div class="member">
  6. <h3 class="name" id="<?js= id ?>" translate="no">.<a href="#<?js= id ?>"><?js= name ?></a><?js= (data.signature ? data.signature : '') ?> <?js= data.attribs ?></h3>
  7. <?js if (data.summary) { ?>
  8. <p class="summary"><?js= summary ?></p>
  9. <?js } ?>
  10. <?js if (data.description) { ?>
  11. <div class="description">
  12. <?js= data.description ?>
  13. <?js if (typeof data.defaultvalue !== 'undefined') { ?>
  14. <p>Default is <code><?js= self.htmlsafe(data.defaultvalue) ?></code>.</p>
  15. <?js } ?>
  16. </div>
  17. <?js } ?>
  18. <?js= this.partial('details.tmpl', data) ?>
  19. <?js if (data.fires && fires.length) { ?>
  20. <h5>Fires:</h5>
  21. <ul>
  22. <?js fires.forEach(function(f) { ?>
  23. <li><?js= self.linkto(f) ?></li>
  24. <?js }); ?>
  25. </ul>
  26. <?js } ?>
  27. <?js if (data.examples && examples.length) { ?>
  28. <h5>Example<?js= examples.length > 1? 's':'' ?></h5>
  29. <?js= this.partial('examples.tmpl', examples) ?>
  30. <?js } ?>
  31. </div>
粤ICP备19079148号