Skip to content

"make sure sidebar and pusher are direct children of your body tag". They do #2130

Discussion options

You must be logged in to vote

You can initiate the sidebar with config settings, then attach your events

        $('#main-sidebar')['sidebar']({
          silent: true
        });
        $('#main-sidebar')['sidebar']('attach events', '.toc.item');

See https://stackblitz.com/edit/angular-gbha7b?file=src%2Fapp%2Fapp.component.ts

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lubber-de
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by smartm0use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment