Closed BrandanKing closed 2 years ago
Vanilla JS:
var title = document.createElement('div');
title.appendChild(document.createTextNode('Hi there!'));
var Nav = new hcOffcanvasNav('#main-nav', {
navTitle: title
});
jQuery:
var Nav = new hcOffcanvasNav('#main-nav', {
navTitle: $('<div>Hi there!</div>')
});
Hi,
You added the ability to render out a HTML element as NavTitle #47 Is it possible that you could update your doc / show me how to actually create the JS element required to make this render properly please.
Thanks