Component

Ember.Component Class PUBLIC Extends: Ember.View Uses: Ember.ViewTargetActionSupport Defined in: packages/ember-htmlbars/lib/component.js:21 Module: ember-views An Ember.Component is a view that is completely isolated. Properties accessed in its templates go to the view object and actions are targeted at the view object. There is no access to the surrounding context or outer controller; all contextual information must be passed in. The easiest way to create an Ember.Component is via a temp

Component#didReceiveAttrs event

didReceiveAttrspublic Defined in packages/ember-htmlbars/lib/component.js:364 Available since 1.13.0 Called when the attributes passed into the component have been updated. Called both during the initial render of a container and during a rerender. Can be used in place of an observer; code placed here will be executed every time any attribute updates.

Component#didReceiveAttrs()

didReceiveAttrspublic Defined in packages/ember-htmlbars/lib/component.js:352 Available since 1.13.0 Called when the attributes passed into the component have been updated. Called both during the initial render of a container and during a rerender. Can be used in place of an observer; code placed here will be executed every time any attribute updates.

Comparable

Ember.Comparable Class PRIVATE Defined in: packages/ember-runtime/lib/mixins/comparable.js:8 Module: ember-runtime Implements some standard methods for comparing objects. Add this mixin to any class you create that can compare its instances. You should implement the compare() method.

Comparable#compare()

compare (a, b) Numberprivate Defined in packages/ember-runtime/lib/mixins/comparable.js:21 Required. You must implement this method to apply this mixin. Override to return the result of the comparison of the two parameters. The compare method should return: -1 if a < b 0 if a == b 1 if a > b Default implementation raises an exception. Parameters: a Object the first object to compare b Object the second object to compare Returns: Number the result of the comparison

ClassNamesSupport#removeChild()

removeChild (view) Ember.Viewprivate Defined in packages/ember-views/lib/mixins/child_views_support.js:33 Removes the child view from the parent view. Parameters: view Ember.View Returns: Ember.View receiver

ClassNamesSupport

Ember.ClassNamesSupport Class PRIVATE Defined in: packages/ember-views/lib/mixins/class_names_support.js:11 Module: ember-views

Classes and Instances

Classes and Instances As you learn about Ember, you'll see code like Ember.Component.extend() and DS.Model.extend(). Here, you'll learn about this extend() method, as well as other major features of the Ember object model. Defining Classes To define a new Ember class, call the extend() method on Ember.Object: const Person = Ember.Object.extend({ say(thing) { alert(thing); } }); This defines a new Person class with a say() method. You can also create a subclass from any existing class

ClassNamesSupport#classNameBindings

classNameBindingsArraypublic Defined in packages/ember-views/lib/mixins/class_names_support.js:41 A list of properties of the view to apply as class names. If the property is a string value, the value of that string will be applied as a class name. // Applies the 'high' class to the view element Ember.View.extend({ classNameBindings: ['priority'], priority: 'high' }); If the value of the property is a Boolean, the name of that property is added as a dasherized class name. // Applies th

ClassNamesSupport#classNames

classNamesArraypublic Defined in packages/ember-views/lib/mixins/class_names_support.js:29 Standard CSS class names to apply to the view's outer element. This property automatically inherits any class names defined by the view's superclasses as well. Default: ['ember-view']