@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) • 379 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class SectionNotice {
onCreate() {
this.state = { dismissed: false };
}
onInput(input) {
this.state = { dismissed: input.dismissed || false };
}
onDismiss() {
this.state.dismissed = true;
this.emit("dismiss");
}
}
module.exports = SectionNotice;