You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to add the following code to the item sub-component of uk-switcher:
setEvents() {
let events = {
beforeshow: this.getWithDefault("on-beforeshow", noop),
show: this.getWithDefault("on-show", noop),
shown: this.getWithDefault("on-shown", noop),
beforehide: this.getWithDefault("on-beforehide", noop),
hide: this.getWithDefault("on-hide", noop),
hidden: this.getWithDefault("on-hidden", noop)
};
for (let event in events) {
UIkit.util.on(this.element, event, events[event]);
}
},
didInsertElement() {
this._super(...arguments);
this.setEvents();
}
to enable the event handling. Thanks
The text was updated successfully, but these errors were encountered:
is it possible to add the following code to the item sub-component of uk-switcher:
setEvents() {
let events = {
beforeshow: this.getWithDefault("on-beforeshow", noop),
show: this.getWithDefault("on-show", noop),
shown: this.getWithDefault("on-shown", noop),
beforehide: this.getWithDefault("on-beforehide", noop),
hide: this.getWithDefault("on-hide", noop),
hidden: this.getWithDefault("on-hidden", noop)
};
},
didInsertElement() {
this._super(...arguments);
this.setEvents();
}
to enable the event handling. Thanks
The text was updated successfully, but these errors were encountered: