<custom-menu>
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Menu example - js.info
/* ---------- helper methods ---------- */
// root.$()
DocumentFragment.prototype.$ = function(selector){
return this.querySelector(selector);
};
// โญ๏ธ get/set attribute
// get: elem.attr(name)
// set: elem.attr(name, value)