7

I couldn't find this documented anywhere or answered in any question. The only one I know for certain exists is 'click' (via Handling events with action).

Related questions I've seen (which don't answer my question):

Community
  • 1
  • 1
Yang
  • 16,037
  • 15
  • 100
  • 142

3 Answers3

15

The supported event names are listed in http://emberjs.com/api/classes/Ember.View.html. Just search for "Possible events names":

Touch events: 'touchStart', 'touchMove', 'touchEnd', 'touchCancel'

Keyboard events: 'keyDown', 'keyUp', 'keyPress'

Mouse events: 'mouseDown', 'mouseUp', 'contextMenu', 'click', 'doubleClick', 'mouseMove', 'focusIn', 'focusOut', 'mouseEnter', 'mouseLeave'

Form events: 'submit', 'change', 'focusIn', 'focusOut', 'input'

HTML5 drag and drop events: 'dragStart', 'drag', 'dragEnter', 'dragLeave', 'drop', 'dragEnd'

pangratz
  • 15,875
  • 7
  • 50
  • 75
2

Here's a list in the source as well

Joe
  • 62,789
  • 6
  • 49
  • 67
mehulkar
  • 4,895
  • 5
  • 35
  • 55
  • This would be a more helpful answer if it explained how to get the list in the source rather than being link only; this link has changed (and may likely change again) meaning it is not a very useful link for the future. – Joe Dec 16 '13 at 20:04
1

For the sake of clarity, I just want to list here.

From ember-views/lib/system/event_dispatcher.js

List:

  events: {
    touchstart  : 'touchStart',
    touchmove   : 'touchMove',
    touchend    : 'touchEnd',
    touchcancel : 'touchCancel',
    keydown     : 'keyDown',
    keyup       : 'keyUp',
    keypress    : 'keyPress',
    mousedown   : 'mouseDown',
    mouseup     : 'mouseUp',
    contextmenu : 'contextMenu',
    click       : 'click',
    dblclick    : 'doubleClick',
    mousemove   : 'mouseMove',
    focusin     : 'focusIn',
    focusout    : 'focusOut',
    mouseenter  : 'mouseEnter',
    mouseleave  : 'mouseLeave',
    submit      : 'submit',
    input       : 'input',
    change      : 'change',
    dragstart   : 'dragStart',
    drag        : 'drag',
    dragenter   : 'dragEnter',
    dragleave   : 'dragLeave',
    dragover    : 'dragOver',
    drop        : 'drop',
    dragend     : 'dragEnd'
  },
Alan Dong
  • 3,981
  • 38
  • 35