Skip to content

Collapsible Bootstrap sidebar menu #1

Description

@agoncal

In this great article the author shows many different ways to get a collapsible sidebar menu. I've tried implementing it, but it always comes back to a

ReferenceError: $ is not defined

I've tried defining JQuery in several ways, adding the @types/jquery dependencies... I can't make it work. And the little bit of JavaScript needed to collapse the menu doesn't work :

$(document).ready(function () {

    $('#sidebarCollapse').on('click', function () {
        $('#sidebar').toggleClass('active');
    });

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions