This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
UIEvent
Adarsh Pastakia edited this page Apr 23, 2017
·
3 revisions
import {UIEvent} from 'aurelia-ui-framework';
@autoinject()
export class Example {
constructor() {
this.observer = UIEvent.subscribe('myEvent', e=>this.handleEvent(e));
this.obProperty = UIEvent.observe(this, 'myProperty', e=>this.propertyChanged(e));
}
detached() {
this.observer.dispose();
this.obProperty.dispose();
}
}
-
broadcast(event name, event data)
-
subscribe(event name, handler):Subscription
-
observe(object, property name, handler):Subscription
-
queueTask(callback)
- UIButton
- UIFieldset
- UIForm
- UIInputGroup
- UIInput
- UITextarea
- UIDate
- UIPhone
- UICheckbox
- UIRadio
- UISwitch
- UICombo
- UITag
- UIList
- UIReorder
- UILanguage
- UIMarkdown
- UIDrawer
- UIDropdown
- UIMenu
- UIPanel
- UISidebar
- UIStatsbar
- UIToolbar
- UIDialog
- UITab
- UITree
- UIDatagrid