@furo/ui5
Version:
SAP UI5 Web Components data bindings for furo-web
23 lines (21 loc) • 503 B
JavaScript
/**
* Event Builder Class
*/
const VALUE_CHANGED = 'furo-value-changed';
export class Events {
/**
* Creates an universal `furo-value-changed` event
* All extended ui5 components should use this builder function to create
* the change event
* @param detail
* @returns {Event}
*/
static buildChangeEvent(detail) {
const customEvent = new Event(VALUE_CHANGED, {
composed: true,
bubbles: true,
});
customEvent.detail = detail;
return customEvent;
}
}