diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index ac3dc9f227..ca78215800 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -14,13 +14,27 @@ function getItemCssClass(type) { return ''; } -const printList = v => { ?> -
  • { - const cls = v.stability && v.stability !== 'stable' ? ' class="unstable"' : ''; ?> -
  • > { + const shortName = toShortName(member.name); ?> +
  • { + const shortName = toShortName(member.name); + const cls = member.stability && member.stability !== 'stable' ? ' class="unstable"' : ''; ?> +
  • > { + const ancestor = self.find({longname: eventName})[0] || + {longname: eventName, name: eventName.split(/#?event:/)[1]}; + const eventEnum = ancestor.longname.split(/#?event:/)[0]; + if (self.find({longname: eventEnum})[0]) { + printListItemWithStability(ancestor); + } else { + const cls = ancestor.stability && ancestor.stability !== 'stable' ? ' class="unstable"' : ''; + const shortName = toShortName(ancestor.name); ?> +
  • > "> self.find({longname: v})[0] || {longname: v, name: v.split(/#?event:/)[1]}); - listContent({fires: fires}, 'Fires', printListWithStability) - } + listContent(item, 'Members', printListItem); + listContent(item, 'Typedefs', printListItemWithStability); + listContent(item, 'Methods', printListItemWithStability); + listContent(item, 'Fires', printFiresListItem); }); ?>