Sha256: e98b9092ad6829160726432b65e63e84b2dbac373b57d8b6f31c217eeec73d22
Contents?: true
Size: 1.13 KB
Versions: 51
Compression:
Stored size: 1.13 KB
Contents
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { controller } from '@github/catalyst'; let PageHeaderElement = class PageHeaderElement extends HTMLElement { menuItemClick(event) { const currentTarget = event.currentTarget; const id = currentTarget?.getAttribute('data-for'); if (id) { document.getElementById(id)?.click(); } } }; PageHeaderElement = __decorate([ controller ], PageHeaderElement); if (!window.customElements.get('page-header')) { window.PageHeaderElement = PageHeaderElement; window.customElements.define('page-header', PageHeaderElement); }
Version data entries
51 entries across 51 versions & 1 rubygems