UNPKG

@ebay/ebayui-core

Version:

Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.

16 lines (15 loc) 427 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Checkbox { forwardEvent(eventName, originalEvent, el) { const elRef = el || this.el.querySelector("input"); const value = elRef.value; const checked = elRef.checked; this.emit(`${eventName}`, { originalEvent, value, checked, }); } } module.exports = Checkbox;