ViewTargetActionSupport#findElementInParentElement()

findElementInParentElement (parentElement) DOMElementprivate Defined in packages/ember-views/lib/mixins/view_support.js:280 Attempts to discover the element in the parent element. The default implementation looks for an element with an ID of elementId (or the view's guid if elementId is null). You can override this method to provide your own form of lookup. For example, if you want to discover your element using a CSS class name instead of an ID. Parameters: parentElement DOMElement Th

ViewTargetActionSupport#rerender()

rerenderpublic Defined in packages/ember-views/lib/mixins/view_support.js:62 Renders the view again. This will work regardless of whether the view is already in the DOM or not. If the view is in the DOM, the rendering process will be deferred to give bindings a chance to synchronize. If children were added during the rendering process using appendChild, rerender will remove them, because they will be added again if needed by the next render. In general, if the display of your view changes,

ViewTargetActionSupport#renderToElement()

renderToElement (tagName) HTMLBodyElementprivate Defined in packages/ember-views/lib/mixins/view_support.js:153 Creates a new DOM element, renders the view into it, then returns the element. By default, the element created and rendered into will be a BODY element, since this is the default context that views are rendered into when being inserted directly into the DOM. let element = view.renderToElement(); element.tagName; // => "BODY" You can override the kind of element rendered into a

ViewTargetActionSupport#replaceIn()

replaceIn (target) Ember.Viewprivate Defined in packages/ember-views/lib/mixins/view_support.js:204 Replaces the content of the specified parent element with this view's element. If the view does not have an HTML representation yet, the element will be generated automatically. Note that this method just schedules the view to be appended; the DOM element will not be appended to the given element until all bindings have finished synchronizing Parameters: target String|DOMElement|jQuery A

Test#registerWaiter()

registerWaiter (context, callback) public Defined in packages/ember-testing/lib/test/waiters.js:7 Available since 1.2.0 This allows ember-testing to play nicely with other asynchronous events, such as an application that is waiting for a CSS3 transition or an IndexDB transaction. For example: Ember.Test.registerWaiter(function() { return myPendingTransactions() == 0; }); The context argument allows you to optionally specify the this with which your callback will be invoked. For example:

Built-in Helpers

Built-in Helpers Built-in Helpers In the last section you learned how to write a helper. A helper is usually a simple function that can be used in any template. Ember comes with a few helpers that can make developing your templates a bit easier. These helpers can allow you to be more dynamic in passing data to another helper or component. Using a helper to get a property dynamically The {{get}} helper makes it easy to dynamically send the value of a variable to another helper or component. Th

Application#waitForDOMReady()

waitForDOMReadyprivate Defined in packages/ember-application/lib/system/application.js:424 Automatically kick-off the boot process for the application once the DOM has become ready. The initialization itself is scheduled on the actions queue which ensures that code-loading finishes before booting. If you are asynchronously loading code, you should call deferReadiness() to defer booting, and then call advanceReadiness() once all of your code has finished loading.

DS#attr()

attr (type, options) Attribute Defined in addon/attr.js:38 DS.attr defines an attribute on a DS.Model. By default, attributes are passed through as-is, however you can specify an optional type to have the value automatically transformed. Ember Data ships with four basic transform types: string, number, boolean and date. You can define your own transforms by subclassing DS.Transform. Note that you cannot use attr to define an attribute of id. DS.attr takes an optional hash as a second parame

Ember.removeListener()

removeListener (obj, eventName, target, method) public Defined in packages/ember-metal/lib/events.js:112 Remove an event listener Arguments should match those passed to Ember.addListener. Parameters: obj eventName String target Object|Function A target object or a function method Function|String A function or the name of a function to be called on `target`

DS.BooleanTransform

DS.BooleanTransform Class Extends: DS.Transform Defined in: addon/-private/transforms/boolean.js:7 Module: ember-data The DS.BooleanTransform class is used to serialize and deserialize boolean attributes on Ember Data record objects. This transform is used when boolean is passed as the type parameter to the DS.attr function. Usage app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ isAdmin: DS.attr('boolean'), name: DS.attr('string'), email: DS.attr('str