Class Application
publicExtends: | Engine |
---|---|
Uses: | RegistryProxyMixin |
Defined in: | packages/ember-application/lib/system/application.js:40 |
Module: | @ember/application |
customEvents public
Module: | @ember/application |
---|
Defined in packages/ember-application/lib/system/application.js:229
The DOM events for which the event dispatcher should listen.
By default, the application's Ember.EventDispatcher
listens for a set of standard DOM events, such as mousedown
and keyup
, and delegates them to your application's Ember.View
instances.
If you would like additional bubbling events to be delegated to your views, set your Ember.Application
's customEvents
property to a hash containing the DOM event name as the key and the corresponding view method name as the value. Setting an event to a value of null
will prevent a default event listener from being added for that event.
To add new events to be listened to:
let App = Ember.Application.create({ customEvents: { // add support for the paste event paste: 'paste' } });
To prevent default events from being listened to:
let App = Ember.Application.create({ customEvents: { // remove support for mouseenter / mouseleave events mouseenter: null, mouseleave: null } });
eventDispatcher public
Module: | @ember/application |
---|
Defined in packages/ember-application/lib/system/application.js:212
The Ember.EventDispatcher
responsible for delegating events to this application's views.
The event dispatcher is created by the application at initialization time and sets up event listeners on the DOM element described by the application's rootElement
property.
See the documentation for Ember.EventDispatcher
for more information.
resolver public
Module: | @ember/application |
---|
Inherited from Engine packages/ember-application/lib/system/engine.js:443
Set this to provide an alternate class to Ember.DefaultResolver
rootElement public
Module: | @ember/application |
---|
Defined in packages/ember-application/lib/system/application.js:196
The root DOM element of the Application. This can be specified as an element or a jQuery-compatible selector string.
This is the element that will be passed to the Application's, eventDispatcher
, which sets up the listeners for event delegation. Every view in your application should be a child of the element you specify here.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/classes/Application/properties