A tour of how the Widget (Virtual DOM) code in Discourse works

I was trying:

api.decorateWidget("hamburger-menu:generalLinks", _ => {
   return [ { route: 'birthdays', label: 'birthdays.title' }, {route: 'another', label: 'another.title' } ];
 });
1 Like