Basic functionality with default options.
var $el = $(".nav").offcanvas(); $(".js-toggle-offcanvas").on("click.offcanvas", function() { $el.offcanvas("toggle"); });
Basic Advanced