Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

UIEvent

Adarsh Pastakia edited this page Apr 23, 2017 · 3 revisions
Usage
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();
  }
}
Methods
  • broadcast(event name, event data)

  • subscribe(event name, handler):Subscription

  • observe(object, property name, handler):Subscription

  • queueTask(callback)


Getting Started

Core Elements
Input Elements
  • UIButton
  • UIFieldset
  • UIForm
  • UIInputGroup
  • UIInput
  • UITextarea
  • UIDate
  • UIPhone
  • UICheckbox
  • UIRadio
  • UISwitch
  • UICombo
  • UITag
  • UIList
  • UIReorder
  • UILanguage
  • UIMarkdown
Components
API Classes
Clone this wiki locally